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

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

public class HtmlEnumItem
extends UIEnumItem

Component-Type org.jboss.seam.ui.EnumItem Component-Family org.jboss.seam.ui.EnumItem Creates a SelectItem from an enum value.


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
HtmlEnumItem()
          Constructor to init default renderers
 
Method Summary
 java.lang.String getEnumValue()
          the string representation of the enum value.
 java.lang.String getFamily()
           
 java.lang.String getLabel()
          the label to be used when rendering the SelectItem.
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setEnumValue(java.lang.String __enumValue)
          the string representation of the enum value.
 void setLabel(java.lang.String __label)
          the label to be used when rendering the SelectItem.
 
Methods inherited from class org.jboss.seam.ui.component.UIEnumItem
getValue
 
Methods inherited from class javax.faces.component.UISelectItem
getItemDescription, getItemLabel, getItemValue, isItemDisabled, isItemEscaped, setItemDescription, setItemDisabled, setItemEscaped, setItemLabel, setItemValue, 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

HtmlEnumItem

public HtmlEnumItem()
Constructor to init default renderers

Method Detail

setEnumValue

public void setEnumValue(java.lang.String __enumValue)
the string representation of the enum value. Setter for enumValue

Specified by:
setEnumValue in class UIEnumItem
Parameters:
enumValue - - new value

getEnumValue

public java.lang.String getEnumValue()
the string representation of the enum value. Getter for enumValue

Specified by:
getEnumValue in class UIEnumItem
Returns:
enumValue value from local variable or value bindings

setLabel

public void setLabel(java.lang.String __label)
the label to be used when rendering the SelectItem. Setter for label

Specified by:
setLabel in class UIEnumItem
Parameters:
label - - new value

getLabel

public java.lang.String getLabel()
the label to be used when rendering the SelectItem. Getter for label

Specified by:
getLabel in class UIEnumItem
Returns:
label value from local variable or value bindings

getFamily

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

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.UISelectItem

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.UISelectItem


Copyright © 2007. All Rights Reserved.