public class SelectInputControl extends InputControl
InputControl.InputInfo, InputControl.ValueInfo
Modifier and Type | Field and Description |
---|---|
static String |
COLATTR_ABBR_OPTIONS |
static String |
NAME |
CURRENCY_CODE_ATTRIBUTE, FORMAT_NULL, FORMAT_NULL_ATTRIBUTE, MAXVALUE_ATTRIBUTE, MINVALUE_ATTRIBUTE, NUMBER_FRACTION_DIGITS, NUMBER_GROUPSEP_ATTRIBUTE, NUMBER_TYPE_ATTRIBUTE
Constructor and Description |
---|
SelectInputControl() |
SelectInputControl(Class<? extends javax.faces.component.html.HtmlSelectOneMenu> inputComponentClass) |
Modifier and Type | Method and Description |
---|---|
void |
addSelectItem(javax.faces.component.UIComponent input,
TextResolver textResolver,
OptionEntry e) |
protected void |
createInputComponents(javax.faces.component.UIComponent parent,
InputControl.InputInfo ii,
javax.faces.context.FacesContext context,
List<javax.faces.component.UIComponent> compList) |
javax.faces.component.html.HtmlSelectOneMenu |
createMenuComponent(javax.faces.component.UIComponent parent) |
protected String |
formatValue(Object value,
InputControl.ValueInfo vi)
Returns the value formated as a string
this is a simple default implementation that does no type-secific formatting
Derived classes may override formatString an provide further formmatting
see TextInputControl for details
|
void |
initOptions(javax.faces.component.html.HtmlSelectOneMenu input,
TextResolver textResolver,
Options options,
boolean addEmpty,
String nullText) |
void |
syncOptions(javax.faces.component.html.HtmlSelectOneMenu input,
TextResolver textResolver,
Options options,
boolean hasEmpty,
String nullText) |
addRemoveDisabledStyle, addRemoveInvalidStyle, addRemoveStyle, clearSubmittedValue, copyAttribute, copyAttributes, copyAttributes, escapeHTML, formatInputValue, formatValue, getFormatInteger, getFormatOption, getFormatOption, getFormatString, getInputComponent, getInputValue, getLabelForId, getName, hasFormatOption, parseInputValue, postUpdateModel, renderInput, renderValue, setInputValue
public static final String COLATTR_ABBR_OPTIONS
public static final String NAME
public SelectInputControl(Class<? extends javax.faces.component.html.HtmlSelectOneMenu> inputComponentClass)
public SelectInputControl()
public javax.faces.component.html.HtmlSelectOneMenu createMenuComponent(javax.faces.component.UIComponent parent)
protected void createInputComponents(javax.faces.component.UIComponent parent, InputControl.InputInfo ii, javax.faces.context.FacesContext context, List<javax.faces.component.UIComponent> compList)
createInputComponents
in class InputControl
public void initOptions(javax.faces.component.html.HtmlSelectOneMenu input, TextResolver textResolver, Options options, boolean addEmpty, String nullText)
public void syncOptions(javax.faces.component.html.HtmlSelectOneMenu input, TextResolver textResolver, Options options, boolean hasEmpty, String nullText)
public void addSelectItem(javax.faces.component.UIComponent input, TextResolver textResolver, OptionEntry e)
protected String formatValue(Object value, InputControl.ValueInfo vi)
InputControl
formatValue
in class InputControl
value
- the value to be formattedvi
- Meta-information about the valueCopyright © 2008–2015 Apache Software Foundation. All rights reserved.