public class SelectInputControl extends InputControl
Modifier and Type | Class and Description |
---|---|
protected static class |
SelectInputControl.SelectGroup
SelectGroup
helper class for building SelectItemGroups
|
InputControl.DisabledType, InputControl.InputInfo, InputControl.ValueInfo
Modifier and Type | Field and Description |
---|---|
static String |
COLATTR_ABBR_OPTIONS |
static String |
FORMAT_SIZE |
static String |
FORMAT_SIZE_ATTR |
static String |
NAME |
static String |
VALUE_EXPRESSION_TYPE |
CSS_STYLE_CLASS, FORMAT_NO_VALUE_STYLES, FORMAT_NULL, FORMAT_NULL_ATTRIBUTE, HTML_ATTR_CHECKED, HTML_ATTR_CLASS, HTML_ATTR_DISABLED, HTML_ATTR_ID, HTML_ATTR_STYLE, HTML_ATTR_TYPE, HTML_EXPR_NBSP, HTML_TAG_DIV, HTML_TAG_INPUT, HTML_TAG_LABEL, HTML_TAG_SPAN, HTML_TAG_TABLE, HTML_TAG_TD, HTML_TAG_TR
Constructor and Description |
---|
SelectInputControl() |
SelectInputControl(String name,
Class<? extends javax.faces.component.html.HtmlSelectOneMenu> menuComponentClass,
Class<? extends javax.faces.component.html.HtmlSelectOneListbox> listComponentClass) |
Modifier and Type | Method and Description |
---|---|
void |
addSelectItem(List<javax.faces.model.SelectItem> list,
TextResolver textResolver,
OptionEntry e,
Class<?> exprType) |
void |
addSelectItem(List<javax.faces.model.SelectItem> list,
TextResolver textResolver,
OptionEntry oe,
Class<?> exprType,
int pos) |
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.UISelectOne |
createSelectComponent(javax.faces.component.UIComponent parent,
javax.faces.context.FacesContext context,
Object formatSize) |
protected Object |
formatInputValue(Object value,
Class<?> targetClass) |
protected Object |
formatInputValue(Object value,
InputControl.InputInfo ii) |
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
|
protected String |
getNullText(InputControl.InputInfo ii) |
protected List<javax.faces.model.SelectItem> |
getSelectItemList(javax.faces.component.UISelectOne input) |
void |
initOptions(javax.faces.component.UISelectOne input,
TextResolver textResolver,
InputControl.InputInfo ii) |
protected boolean |
isEmptyEntryRequired(javax.faces.component.UISelectOne input,
Options options,
InputControl.InputInfo ii,
Object currentValue) |
protected Object |
parseInputValue(String value,
InputControl.InputInfo ii) |
protected boolean |
setDisabled(javax.faces.component.UISelectOne input,
InputControl.InputInfo ii) |
protected void |
setItemLabel(javax.faces.model.SelectItem si,
TextResolver textResolver,
OptionEntry oe) |
void |
syncOptions(javax.faces.component.UISelectOne input,
TextResolver textResolver,
InputControl.InputInfo ii) |
protected void |
updateInputState(List<javax.faces.component.UIComponent> compList,
InputControl.InputInfo ii,
javax.faces.context.FacesContext context,
javax.faces.event.PhaseId phaseId) |
addAttachedObjects, addDataValueStyle, addRemoveDisabledStyle, addRemoveInvalidStyle, addRemoveStyle, addRemoveStyle, addRemoveValueNullStyle, clearLocalValues, clearSubmittedValue, copyAttribute, copyAttributes, copyAttributes, createInput, formatValue, getConvertedValue, getCssStyleClass, getFirstInput, getFormatInteger, getFormatOption, getFormatOption, getFormatString, getInputComponent, getInputStyleClass, getInputValue, getLabelForId, getName, getOptionText, hasFormatOption, hasFormatOption, initCssStyleClass, isCreatingComponents, isInputValueExpressionEnabled, postUpdateModel, renderInput, renderValue, renderValue, setInputStyleClass, setInputValue, setInputValueExpression, updateAttachedObjects, updateInputState
public static final String COLATTR_ABBR_OPTIONS
public static final String VALUE_EXPRESSION_TYPE
public static final String FORMAT_SIZE
public static final String FORMAT_SIZE_ATTR
public static final String NAME
public SelectInputControl(String name, Class<? extends javax.faces.component.html.HtmlSelectOneMenu> menuComponentClass, Class<? extends javax.faces.component.html.HtmlSelectOneListbox> listComponentClass)
public SelectInputControl()
public javax.faces.component.UISelectOne createSelectComponent(javax.faces.component.UIComponent parent, javax.faces.context.FacesContext context, Object formatSize)
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
protected void updateInputState(List<javax.faces.component.UIComponent> compList, InputControl.InputInfo ii, javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId)
updateInputState
in class InputControl
protected boolean setDisabled(javax.faces.component.UISelectOne input, InputControl.InputInfo ii)
protected boolean isEmptyEntryRequired(javax.faces.component.UISelectOne input, Options options, InputControl.InputInfo ii, Object currentValue)
public void initOptions(javax.faces.component.UISelectOne input, TextResolver textResolver, InputControl.InputInfo ii)
public void syncOptions(javax.faces.component.UISelectOne input, TextResolver textResolver, InputControl.InputInfo ii)
protected List<javax.faces.model.SelectItem> getSelectItemList(javax.faces.component.UISelectOne input)
public void addSelectItem(List<javax.faces.model.SelectItem> list, TextResolver textResolver, OptionEntry oe, Class<?> exprType, int pos)
public void addSelectItem(List<javax.faces.model.SelectItem> list, TextResolver textResolver, OptionEntry e, Class<?> exprType)
protected void setItemLabel(javax.faces.model.SelectItem si, TextResolver textResolver, OptionEntry oe)
protected String getNullText(InputControl.InputInfo ii)
protected String formatValue(Object value, InputControl.ValueInfo vi)
InputControl
formatValue
in class InputControl
value
- the value to be formattedvi
- Meta-information about the valueprotected Object formatInputValue(Object value, InputControl.InputInfo ii)
formatInputValue
in class InputControl
protected Object parseInputValue(String value, InputControl.InputInfo ii)
parseInputValue
in class InputControl
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.