org.apache.empire.jsf2.controls
Class SelectInputControl

java.lang.Object
  extended by org.apache.empire.jsf2.controls.InputControl
      extended by org.apache.empire.jsf2.controls.SelectInputControl

public class SelectInputControl
extends InputControl


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.empire.jsf2.controls.InputControl
InputControl.InputInfo, InputControl.ValueInfo
 
Field Summary
static String COLATTR_ABBR_OPTIONS
           
static String NAME
           
 
Fields inherited from class org.apache.empire.jsf2.controls.InputControl
CURRENCY_CODE_ATTRIBUTE, FORMAT_NULL, FORMAT_NULL_ATTRIBUTE, MAXVALUE_ATTRIBUTE, MINVALUE_ATTRIBUTE, NUMBER_FRACTION_DIGITS, NUMBER_GROUPSEP_ATTRIBUTE, NUMBER_TYPE_ATTRIBUTE
 
Constructor Summary
SelectInputControl()
           
SelectInputControl(Class<? extends javax.faces.component.html.HtmlSelectOneMenu> inputComponentClass)
           
 
Method Summary
 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)
           
 
Methods inherited from class org.apache.empire.jsf2.controls.InputControl
addRemoveDisabledStyle, addRemoveInvalidStyle, addRemoveStyle, clearSubmittedValue, copyAttribute, copyAttributes, copyAttributes, escapeHTML, formatInputValue, formatValue, getFormatInteger, getFormatOption, getFormatString, getInputComponent, getInputValue, getLabelForId, getName, hasFormatOption, parseInputValue, postUpdateModel, renderInput, renderValue, setInputValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLATTR_ABBR_OPTIONS

public static final String COLATTR_ABBR_OPTIONS
See Also:
Constant Field Values

NAME

public static final String NAME
See Also:
Constant Field Values
Constructor Detail

SelectInputControl

public SelectInputControl(Class<? extends javax.faces.component.html.HtmlSelectOneMenu> inputComponentClass)

SelectInputControl

public SelectInputControl()
Method Detail

createMenuComponent

public javax.faces.component.html.HtmlSelectOneMenu createMenuComponent(javax.faces.component.UIComponent parent)

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:
createInputComponents in class InputControl

initOptions

public void initOptions(javax.faces.component.html.HtmlSelectOneMenu input,
                        TextResolver textResolver,
                        Options options,
                        boolean addEmpty,
                        String nullText)

syncOptions

public void syncOptions(javax.faces.component.html.HtmlSelectOneMenu input,
                        TextResolver textResolver,
                        Options options,
                        boolean hasEmpty,
                        String nullText)

addSelectItem

public void addSelectItem(javax.faces.component.UIComponent input,
                          TextResolver textResolver,
                          OptionEntry e)

formatValue

protected String formatValue(Object value,
                             InputControl.ValueInfo vi)
Description copied from class: InputControl
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

Overrides:
formatValue in class InputControl
Parameters:
value - the value to be formatted
vi - Meta-information about the value
Returns:
the formatted value


Copyright © 2008–2014 Apache Software Foundation. All rights reserved.