Package org.jboss.hal.ballroom.form
Class SingleSelectBoxItem
- java.lang.Object
-
- org.jboss.hal.ballroom.form.AbstractFormItem<String>
-
- org.jboss.hal.ballroom.form.SingleSelectBoxItem
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasValueChangeHandlers<String>,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.TakesValue<String>,com.google.gwt.user.client.ui.Focusable,com.google.gwt.user.client.ui.HasEnabled,com.google.gwt.user.client.ui.HasName,com.google.gwt.user.client.ui.HasValue<String>,Attachable,FormItem<String>
public class SingleSelectBoxItem extends AbstractFormItem<String>
-
-
Constructor Summary
Constructors Constructor Description SingleSelectBoxItem(String name, String label, List<String> options, boolean allowEmpty)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearValue()Sets the value and expression value tonull, clears any error marker and shows the default value (if any).booleanisEmpty()voidsetUndefined(boolean undefined)booleansupportsExpressions()voidupdateAllowedValues(List<String> values)-
Methods inherited from class org.jboss.hal.ballroom.form.AbstractFormItem
addEncryptExpressionHandler, addResolveExpressionHandler, addValidationHandler, addValueChangeHandler, assignDefaultValue, attach, clearError, detach, element, fireEvent, getExpressionValue, getId, getLabel, getName, getTabIndex, getValue, isDeprecated, isEnabled, isExpressionAllowed, isExpressionValue, isModified, isRequired, isRestricted, isUndefined, mask, onSuggest, registerSuggestHandler, setAccessKey, setDeprecated, setEnabled, setExpressionAllowed, setExpressionValue, setFocus, setId, setLabel, setModified, setName, setRequired, setRestricted, setTabIndex, setValue, setValue, showError, unmask, validate
-
-
-
-
Method Detail
-
clearValue
public void clearValue()
Description copied from class:AbstractFormItemSets the value and expression value tonull, clears any error marker and shows the default value (if any). Does not touch themodifiedandundefinedflags. Should be called from business code like form mapping.- Specified by:
clearValuein interfaceFormItem<String>- Overrides:
clearValuein classAbstractFormItem<String>
-
isEmpty
public boolean isEmpty()
- Returns:
- if this form item has no value.
-
supportsExpressions
public boolean supportsExpressions()
-
setUndefined
public void setUndefined(boolean undefined)
- Specified by:
setUndefinedin interfaceFormItem<String>- Overrides:
setUndefinedin classAbstractFormItem<String>
-
-