/** * True to disable the field (defaults to false). * * @param disabled true to disable */ public void setDisabled(boolean disabled) { if (!isRendered()) { setAttribute("disabled", disabled, true, true); } else { super.setDisabled(disabled); } }
public void show() { super.show(); if (!isRendered()) { Scheduler.get() .scheduleDeferred( new ScheduledCommand() { @Override public void execute() { show(); } }); } else { ExtElement elem = getEl().up(".x-form-item"); if (elem != null) elem.setDisplayed(true); } }
public void hide() { super.hide(); if (!isRendered() && !this.isHidden()) { Scheduler.get() .scheduleDeferred( new ScheduledCommand() { @Override public void execute() { hide(); } }); } else if (isRendered()) { ExtElement elem = getEl().up(".x-form-item"); if (elem != null) elem.setDisplayed(false); } }
/** * A CSS class to apply to the field's underlying element. * * @param cls the CSS class * @throws IllegalStateException this property cannot be changed after the Component has been * rendered */ public void setCls(String cls) throws IllegalStateException { super.setCls(cls); }