public class RadioInputControl extends InputControl
InputControl.InputInfo, InputControl.ValueInfo
Modifier and Type | Field and Description |
---|---|
static String |
COLATTR_ABBR_OPTIONS |
static String |
NAME |
static String |
VALUE_EXPRESSION_FLAG |
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 |
---|
RadioInputControl() |
RadioInputControl(String name,
Class<? extends javax.faces.component.html.HtmlSelectOneRadio> inputComponentClass) |
Modifier and Type | Method and Description |
---|---|
void |
addSelectItem(javax.faces.component.UIComponent input,
TextResolver textResolver,
OptionEntry e) |
protected void |
copyAttributes(javax.faces.component.UIComponent parent,
InputControl.InputInfo ii,
javax.faces.component.UIInput input,
String additonalStyle) |
protected void |
createInputComponents(javax.faces.component.UIComponent parent,
InputControl.InputInfo ii,
javax.faces.context.FacesContext context,
List<javax.faces.component.UIComponent> compList) |
protected Object |
formatInputValue(Object value,
InputControl.InputInfo ii)
Override this to format a value for output
|
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 boolean |
getEmptyEntryRequired(InputControl.InputInfo ii,
boolean disabled) |
protected String |
getNullText(InputControl.InputInfo ii) |
void |
initOptions(javax.faces.component.html.HtmlSelectOneRadio input,
TextResolver textResolver,
Options options,
boolean addEmpty,
String nullText) |
protected Object |
parseInputValue(String value,
InputControl.InputInfo ii) |
void |
renderValue(InputControl.ValueInfo vi,
javax.faces.context.ResponseWriter writer) |
void |
syncOptions(javax.faces.component.html.HtmlSelectOneRadio input,
TextResolver textResolver,
Options options,
boolean hasEmpty,
String nullText) |
protected void |
updateInputState(List<javax.faces.component.UIComponent> compList,
InputControl.InputInfo ii,
javax.faces.context.FacesContext context,
boolean setValue) |
addAttachedObjects, addRemoveDisabledStyle, addRemoveInvalidStyle, addRemoveStyle, clearSubmittedValue, copyAttribute, copyAttributes, createInput, escapeHTML, formatValue, getConvertedValue, getFirstInput, getFormatInteger, getFormatOption, getFormatOption, getFormatString, getInputComponent, getInputValue, getLabelForId, getName, hasFormatOption, isCreatingComponents, postUpdateModel, renderInput, setInputValue, updateAttachedObjects, updateInputState
public static final String COLATTR_ABBR_OPTIONS
public static final String VALUE_EXPRESSION_FLAG
public static final String NAME
public RadioInputControl(String name, Class<? extends javax.faces.component.html.HtmlSelectOneRadio> inputComponentClass)
public RadioInputControl()
public void renderValue(InputControl.ValueInfo vi, javax.faces.context.ResponseWriter writer) throws IOException
renderValue
in class InputControl
IOException
protected void copyAttributes(javax.faces.component.UIComponent parent, InputControl.InputInfo ii, javax.faces.component.UIInput input, String additonalStyle)
copyAttributes
in class InputControl
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, boolean setValue)
updateInputState
in class InputControl
protected boolean getEmptyEntryRequired(InputControl.InputInfo ii, boolean disabled)
public void initOptions(javax.faces.component.html.HtmlSelectOneRadio input, TextResolver textResolver, Options options, boolean addEmpty, String nullText)
public void syncOptions(javax.faces.component.html.HtmlSelectOneRadio input, TextResolver textResolver, Options options, boolean hasEmpty, String nullText)
public void addSelectItem(javax.faces.component.UIComponent input, TextResolver textResolver, OptionEntry e)
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)
InputControl
formatInputValue
in class InputControl
protected Object parseInputValue(String value, InputControl.InputInfo ii)
parseInputValue
in class InputControl
Copyright © 2008–2018 Apache Software Foundation. All rights reserved.