Package org.apache.empire.jsf2.controls
Class RadioInputControl
java.lang.Object
org.apache.empire.jsf2.controls.InputControl
org.apache.empire.jsf2.controls.RadioInputControl
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.empire.jsf2.controls.InputControl
InputControl.DisabledType, InputControl.InputInfo, InputControl.ValueInfo -
Field Summary
FieldsFields inherited from class org.apache.empire.jsf2.controls.InputControl
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 Summary
ConstructorsConstructorDescriptionRadioInputControl(String name, Class<? extends javax.faces.component.html.HtmlSelectOneRadio> inputComponentClass) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSelectItem(javax.faces.component.UIComponent input, TextResolver textResolver, OptionEntry e) protected voidcreateInputComponents(javax.faces.component.UIComponent parent, InputControl.InputInfo ii, javax.faces.context.FacesContext context, List<javax.faces.component.UIComponent> compList) protected ObjectformatInputValue(Object value, InputControl.InputInfo ii) protected StringformatValue(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 detailsprotected booleangetEmptyEntryRequired(InputControl.InputInfo ii, boolean disabled) protected StringvoidinitOptions(javax.faces.component.html.HtmlSelectOneRadio input, TextResolver textResolver, Options options, boolean addEmpty, String nullText) protected ObjectparseInputValue(String value, InputControl.InputInfo ii) Parses a value for a single input componentvoidrenderValue(Object value, InputControl.ValueInfo vi, javax.faces.context.ResponseWriter writer) Renders the control value without a surrounding tag (Text only)protected voidsetInputStyleClass(javax.faces.component.UIInput input, StyleClass cssStyleClass) voidsyncOptions(javax.faces.component.html.HtmlSelectOneRadio input, TextResolver textResolver, Options options, boolean hasEmpty, String nullText) protected voidupdateInputState(List<javax.faces.component.UIComponent> compList, InputControl.InputInfo ii, javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId) Methods inherited from class org.apache.empire.jsf2.controls.InputControl
addAttachedObjects, addDataValueStyle, addRemoveStyle, addRemoveValueNullStyle, clearLocalValues, clearSubmittedValue, copyAttribute, copyAttributes, copyAttributes, createInput, formatValue, getConvertedValue, getCssStyleClass, getFirstInput, getFormatInteger, getFormatOption, getFormatOption, getFormatString, getInputComponents, getInputCount, getInputValue, getInputValue, getLabelForId, getName, getOptionText, hasFormatOption, hasFormatOption, initCssStyleClass, isCreatingComponents, isInputValueExpressionEnabled, parseInputValue, postUpdateModel, renderInput, renderValue, restoreSubmittedValue, setInputStyleClass, setInputStyleClass, setInputValue, setInputValue, setInputValueExpression, updateAttachedObjects, updateInputState
-
Field Details
-
COLATTR_ABBR_OPTIONS
- See Also:
-
VALUE_EXPRESSION_FLAG
- See Also:
-
NAME
- See Also:
-
-
Constructor Details
-
RadioInputControl
-
RadioInputControl
public RadioInputControl()
-
-
Method Details
-
renderValue
public void renderValue(Object value, InputControl.ValueInfo vi, javax.faces.context.ResponseWriter writer) throws IOException Description copied from class:InputControlRenders the control value without a surrounding tag (Text only)- Overrides:
renderValuein classInputControl- Parameters:
value- the value to rendervi- the value infowriter- the output writer- Throws:
IOException- from ResponseWriter
-
setInputStyleClass
- Overrides:
setInputStyleClassin classInputControl
-
createInputComponents
protected void createInputComponents(javax.faces.component.UIComponent parent, InputControl.InputInfo ii, javax.faces.context.FacesContext context, List<javax.faces.component.UIComponent> compList) - Specified by:
createInputComponentsin classInputControl
-
updateInputState
protected void updateInputState(List<javax.faces.component.UIComponent> compList, InputControl.InputInfo ii, javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId) - Specified by:
updateInputStatein classInputControl
-
getEmptyEntryRequired
-
initOptions
public void initOptions(javax.faces.component.html.HtmlSelectOneRadio input, TextResolver textResolver, Options options, boolean addEmpty, String nullText) -
syncOptions
public void syncOptions(javax.faces.component.html.HtmlSelectOneRadio input, TextResolver textResolver, Options options, boolean hasEmpty, String nullText) -
addSelectItem
public void addSelectItem(javax.faces.component.UIComponent input, TextResolver textResolver, OptionEntry e) -
getNullText
-
formatValue
Description copied from class:InputControlReturns 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- Overrides:
formatValuein classInputControl- Parameters:
value- the value to be formattedvi- Meta-information about the value- Returns:
- the formatted value
-
formatInputValue
- Overrides:
formatInputValuein classInputControl
-
parseInputValue
Description copied from class:InputControlParses a value for a single input component- Overrides:
parseInputValuein classInputControl- Parameters:
value- the value to parseii- the input info- Returns:
- the parsed and converted value
-