org.jboss.seam.ui.component.html
Class HtmlSelectItems

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UISelectItems
              extended by org.jboss.seam.ui.component.UISelectItems
                  extended by org.jboss.seam.ui.component.html.HtmlSelectItems
All Implemented Interfaces:
javax.faces.component.StateHolder

public class HtmlSelectItems
extends UISelectItems

Component-Type org.jboss.seam.ui.SelectItems Component-Family javax.faces.SelectItems Creates a List<SelectItem> from a List, Set, DataModel or Array.


Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
HtmlSelectItems()
          Constructor to init default renderers
 
Method Summary
 java.lang.Boolean getDisabled()
          if true the SelectItem will be rendered disabled.
 java.lang.String getFamily()
           
 java.lang.Boolean getHideNoSelectionLabel()
          if true, the noSelectionLabel will be hidden when a value is selected Getter for hideNoSelectionLabel
 java.lang.String getNoSelectionLabel()
          specifies the (optional) label to place at the top of list (if required="true" is also specified then selecting this value will cause a validation error) Getter for noSelectionLabel
 java.lang.String getVar()
          defines the name of the local variable that holds the current object during iteration Getter for var
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setDisabled(java.lang.Boolean __disabled)
          if true the SelectItem will be rendered disabled.
 void setHideNoSelectionLabel(java.lang.Boolean __hideNoSelectionLabel)
          if true, the noSelectionLabel will be hidden when a value is selected Setter for hideNoSelectionLabel
 void setNoSelectionLabel(java.lang.String __noSelectionLabel)
          specifies the (optional) label to place at the top of list (if required="true" is also specified then selecting this value will cause a validation error) Setter for noSelectionLabel
 void setVar(java.lang.String __var)
          defines the name of the local variable that holds the current object during iteration Setter for var
 
Methods inherited from class org.jboss.seam.ui.component.UISelectItems
getLabel, getValue, setLabel
 
Methods inherited from class javax.faces.component.UISelectItems
setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values

COMPONENT_FAMILY

public static final java.lang.String COMPONENT_FAMILY
See Also:
Constant Field Values
Constructor Detail

HtmlSelectItems

public HtmlSelectItems()
Constructor to init default renderers

Method Detail

setVar

public void setVar(java.lang.String __var)
defines the name of the local variable that holds the current object during iteration Setter for var

Specified by:
setVar in class UISelectItems
Parameters:
var - - new value

getVar

public java.lang.String getVar()
defines the name of the local variable that holds the current object during iteration Getter for var

Specified by:
getVar in class UISelectItems
Returns:
var value from local variable or value bindings

setDisabled

public void setDisabled(java.lang.Boolean __disabled)
if true the SelectItem will be rendered disabled. Can reference the var variable Setter for disabled

Specified by:
setDisabled in class UISelectItems
Parameters:
disabled - - new value

getDisabled

public java.lang.Boolean getDisabled()
if true the SelectItem will be rendered disabled. Can reference the var variable Getter for disabled

Specified by:
getDisabled in class UISelectItems
Returns:
disabled value from local variable or value bindings

setHideNoSelectionLabel

public void setHideNoSelectionLabel(java.lang.Boolean __hideNoSelectionLabel)
if true, the noSelectionLabel will be hidden when a value is selected Setter for hideNoSelectionLabel

Specified by:
setHideNoSelectionLabel in class UISelectItems
Parameters:
hideNoSelectionLabel - - new value

getHideNoSelectionLabel

public java.lang.Boolean getHideNoSelectionLabel()
if true, the noSelectionLabel will be hidden when a value is selected Getter for hideNoSelectionLabel

Specified by:
getHideNoSelectionLabel in class UISelectItems
Returns:
hideNoSelectionLabel value from local variable or value bindings

setNoSelectionLabel

public void setNoSelectionLabel(java.lang.String __noSelectionLabel)
specifies the (optional) label to place at the top of list (if required="true" is also specified then selecting this value will cause a validation error) Setter for noSelectionLabel

Specified by:
setNoSelectionLabel in class UISelectItems
Parameters:
noSelectionLabel - - new value

getNoSelectionLabel

public java.lang.String getNoSelectionLabel()
specifies the (optional) label to place at the top of list (if required="true" is also specified then selecting this value will cause a validation error) Getter for noSelectionLabel

Specified by:
getNoSelectionLabel in class UISelectItems
Returns:
noSelectionLabel value from local variable or value bindings

getFamily

public java.lang.String getFamily()
Overrides:
getFamily in class javax.faces.component.UISelectItems

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UISelectItems

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UISelectItems


Copyright © 2007. All Rights Reserved.