public class SingleSelectBoxItem extends AbstractFormItem<String>
| Constructor and Description |
|---|
SingleSelectBoxItem(String name,
String label,
List<String> options,
boolean allowEmpty) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearValue()
Sets the value and expression value to
null, clears any error marker and
shows the default value (if any). |
boolean |
isEmpty() |
void |
setUndefined(boolean undefined) |
boolean |
supportsExpressions() |
addAppearance, addResolveExpressionHandler, addValidationHandler, addValueChangeHandler, asElement, assignDefaultValue, attach, clearError, detach, fireEvent, getExpressionValue, getId, getLabel, getName, getTabIndex, getValue, isDeprecated, isEnabled, isExpressionAllowed, isExpressionValue, isModified, isRequired, isRestricted, isUndefined, mask, modifyExpressionValue, modifyValue, onSuggest, registerSuggestHandler, remember, setAccessKey, setDeprecated, setEnabled, setExpressionAllowed, setExpressionValue, setFocus, setId, setLabel, setModified, setName, setRequired, setRestricted, setTabIndex, setValue, setValue, showError, unmask, validatepublic void clearValue()
AbstractFormItemnull, clears any error marker and
shows the default value (if any). Does not touch the modified and undefined flags. Should be
called from business code like form mapping.clearValue in interface FormItem<String>clearValue in class AbstractFormItem<String>public boolean isEmpty()
public boolean supportsExpressions()
public void setUndefined(boolean undefined)
setUndefined in interface FormItem<String>setUndefined in class AbstractFormItem<String>Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.