public void clearFields() { this.userNameItem.clearValue(); this.nameItem.clearValue(); this.passwordItem.clearValue(); this.verifyPasswordItem.clearValue(); this.emailItem.clearValue(); this.verifyEmailItem.clearValue(); this.acceptBox.setValue(false); }
/** * Custom properties to apply to this dateItem's generated {@link * com.smartgwt.client.widgets.form.fields.DateItem#getDaySelector daySelector}. * * * @return SelectItem */ public SelectItem getDaySelectorProperties() { return SelectItem.getOrCreateRef(getAttributeAsJavaScriptObject("daySelectorProperties")); }
@Override public void onChanged(ChangedEvent changedEvent) { featureInfoFormatItem.setRequired(enableFeatureInfoItem.getValueAsBoolean()); } });
/** * Return the value of the checkbox as a boolean * * @return the checbox value as Boolean */ public Boolean getValueAsBoolean() { Boolean origValue = (Boolean) super.getValue(); return !(!getAllowEmptyValue() && origValue == null) && origValue; }
private void disableAllFields() { propDateValue.setVisible(false); propStringValue.setVisible(false); propLongValue.setVisible(false); propBooleanValue.setVisible(false); propFloatValue.setVisible(false); propGridCanvas.setVisible(false); } // TODO: Browse for reference
/** * Icon that launches a {@link com.smartgwt.client.widgets.DateChooser} for choosing an absolute date. * * * @return FormItemIcon */ public FormItemIcon getPickerIcon() { return new FormItemIcon(getAttributeAsJavaScriptObject("pickerIcon")); }
public AutoFitTextAreaItem(String name, String title) { setName(name); setTitle(title); setAttribute("editorType", "AutoFitTextAreaItem"); }
/** * Custom properties to apply to this dateItem's generated {@link * com.smartgwt.client.widgets.form.fields.DateItem#getMonthSelector monthSelector}. * <p><b>Note : </b> This is an advanced setting</p> * * @param monthSelectorProperties monthSelectorProperties Default value is null */ public void setMonthSelectorProperties(SelectItem monthSelectorProperties) { setAttribute("monthSelectorProperties", monthSelectorProperties.getJsObj()); }
/** * Custom properties to apply to this dateItem's generated {@link * com.smartgwt.client.widgets.form.fields.DateItem#getTextField textField}. Only applies if {@link * com.smartgwt.client.widgets.form.fields.DateItem#getUseTextField useTextField} is true. * <p><b>Note : </b> This is an advanced setting</p> * * @param textFieldProperties textFieldProperties Default value is null */ public void setTextFieldProperties(TextItem textFieldProperties) { setAttribute("textFieldProperties", textFieldProperties.getJsObj()); }
/** * Custom properties to apply to this dateItem's generated {@link * com.smartgwt.client.widgets.form.fields.DateItem#getTextField textField}. Only applies if {@link * com.smartgwt.client.widgets.form.fields.DateItem#getUseTextField useTextField} is true. * * * @return TextItem */ public TextItem getTextFieldProperties() { return TextItem.getOrCreateRef(getAttributeAsJavaScriptObject("textFieldProperties")); }
/** * Icon that launches a {@link com.smartgwt.client.widgets.DateChooser} for choosing an absolute date. * * @param pickerIcon pickerIcon Default value is null */ public void setPickerIcon(FormItemIcon pickerIcon) { setAttribute("pickerIcon", pickerIcon.getJsObj()); }
/** * If true, text that exceeds the specified size of the form item will be clipped * * @param clipValue clipValue Default value is false * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public void setClipValue(Boolean clipValue) { setAttribute("clipValue", clipValue); }
/** * If true, text that exceeds the specified size of the form item will be clipped * * * @return Boolean * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public Boolean getClipValue() { return getAttributeAsBoolean("clipValue"); }
/** * Custom properties to apply to this dateItem's generated {@link * com.smartgwt.client.widgets.form.fields.DateItem#getYearSelector yearSelector}. * * * @return SelectItem */ public SelectItem getYearSelectorProperties() { return SelectItem.getOrCreateRef(getAttributeAsJavaScriptObject("yearSelectorProperties")); }
/** * Custom properties to apply to this dateItem's generated {@link * com.smartgwt.client.widgets.form.fields.DateItem#getDaySelector daySelector}. * <p><b>Note : </b> This is an advanced setting</p> * * @param daySelectorProperties daySelectorProperties Default value is null */ public void setDaySelectorProperties(SelectItem daySelectorProperties) { setAttribute("daySelectorProperties", daySelectorProperties.getJsObj()); }
/** * Base css style for this item. * * @param textBoxStyle textBoxStyle Default value is "staticTextItem" * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public void setTextBoxStyle(String textBoxStyle) { setAttribute("textBoxStyle", textBoxStyle); }
/** * Blurb items show no title by default. * * * @return Boolean * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public Boolean getShowTitle() { return getAttributeAsBoolean("showTitle"); }
/** * Custom properties to apply to this dateItem's generated {@link * com.smartgwt.client.widgets.form.fields.DateItem#getMonthSelector monthSelector}. * * * @return SelectItem */ public SelectItem getMonthSelectorProperties() { return SelectItem.getOrCreateRef(getAttributeAsJavaScriptObject("monthSelectorProperties")); }
/** * Custom properties to apply to this dateItem's generated {@link * com.smartgwt.client.widgets.form.fields.DateItem#getYearSelector yearSelector}. * <p><b>Note : </b> This is an advanced setting</p> * * @param yearSelectorProperties yearSelectorProperties Default value is null */ public void setYearSelectorProperties(SelectItem yearSelectorProperties) { setAttribute("yearSelectorProperties", yearSelectorProperties.getJsObj()); }