Class SelectInputControl

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

public class SelectInputControl extends InputControl
  • Field Details

  • Constructor Details

    • SelectInputControl

      public SelectInputControl(String name, Class<? extends javax.faces.component.html.HtmlSelectOneMenu> menuComponentClass, Class<? extends javax.faces.component.html.HtmlSelectOneListbox> listComponentClass)
    • SelectInputControl

      public SelectInputControl()
  • Method Details

    • createSelectComponent

      public javax.faces.component.UISelectOne createSelectComponent(javax.faces.component.UIComponent parent, javax.faces.context.FacesContext context, Object formatSize)
    • 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
    • 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:
      updateInputState in class InputControl
    • setDisabled

      protected void setDisabled(javax.faces.component.UISelectOne input, InputControl.InputInfo ii)
    • isEmptyEntryRequired

      protected boolean isEmptyEntryRequired(javax.faces.component.UISelectOne input, Options options, InputControl.InputInfo ii, Object currentValue)
    • initOptions

      public void initOptions(javax.faces.component.UISelectOne input, TextResolver textResolver, InputControl.InputInfo ii)
    • syncOptions

      public void syncOptions(javax.faces.component.UISelectOne input, TextResolver textResolver, InputControl.InputInfo ii)
    • getSelectItemList

      protected List<javax.faces.model.SelectItem> getSelectItemList(javax.faces.component.UISelectOne input)
    • addSelectItem

      public void addSelectItem(List<javax.faces.model.SelectItem> list, TextResolver textResolver, OptionEntry oe, Class<?> exprType, int pos)
    • addSelectItem

      public void addSelectItem(List<javax.faces.model.SelectItem> list, TextResolver textResolver, OptionEntry e, Class<?> exprType)
    • setItemLabel

      protected void setItemLabel(javax.faces.model.SelectItem si, TextResolver textResolver, OptionEntry oe)
    • getNullText

      protected String getNullText(InputControl.InputInfo ii)
    • 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
    • formatInputValue

      protected Object formatInputValue(Object value, InputControl.InputInfo ii)
      Overrides:
      formatInputValue in class InputControl
    • formatInputValue

      protected Object formatInputValue(Object value, Class<?> targetClass)
    • parseInputValue

      protected Object parseInputValue(String value, InputControl.InputInfo ii)
      Description copied from class: InputControl
      Parses a value for a single input component
      Overrides:
      parseInputValue in class InputControl
      Parameters:
      value - the value to parse
      ii - the input info
      Returns:
      the parsed and converted value