|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.faces.component.UIComponent
|
+--javax.faces.component.UIComponentBase
|
+--javax.faces.component.UISelectItem
UISelectItem is a component that may be nested
inside a UISelectMany or UISelectOne component, and
causes the addition of a SelectItem instance to the list of
available options for the parent component. The contents of the
SelectItem can be specified in one of the following ways:
value attribute's value is an instance of
SelectItem.ValueBinding points at a model data
item of type SelectItem.SelectItem instance is synthesized from the values
of the itemDescription, itemDisabled,
itemLabel, and itemValue attributes.
| Field Summary | |
static java.lang.String |
COMPONENT_FAMILY
The standard component family for this component. |
static java.lang.String |
COMPONENT_TYPE
The standard component type for this component. |
| Constructor Summary | |
UISelectItem()
Create a new UISelectItem instance with default property
values. |
|
| Method Summary | |
java.lang.String |
getFamily()
Return the identifier of the component family to which this component belongs. |
java.lang.String |
getItemDescription()
Return the description for this selection item. |
java.lang.String |
getItemLabel()
Return the localized label for this selection item. |
java.lang.Object |
getItemValue()
Return the server value for this selection item. |
java.lang.Object |
getValue()
Returns the value property of the
UISelectItem. |
boolean |
isItemDisabled()
Return the disabled setting for this selection item. |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
Perform any processing required to restore the state from the entries in the state Object. |
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
Gets the state of the instance as a Serializable Object. |
void |
setItemDescription(java.lang.String itemDescription)
Set the description for this selection item. |
void |
setItemDisabled(boolean itemDisabled)
Set the disabled value for this selection item. |
void |
setItemLabel(java.lang.String itemLabel)
Set the localized label for this selection item. |
void |
setItemValue(java.lang.Object itemValue)
Set the server value for this selection item. |
void |
setValue(java.lang.Object value)
Sets the value property of the
UISelectItem. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String COMPONENT_TYPE
The standard component type for this component.
public static final java.lang.String COMPONENT_FAMILY
The standard component family for this component.
| Constructor Detail |
public UISelectItem()
Create a new UISelectItem instance with default property
values.
| Method Detail |
public java.lang.String getFamily()
UIComponentReturn the identifier of the component family to which this
component belongs. This identifier, in conjunction with the value
of the rendererType property, may be used to select
the appropriate Renderer for this component instance.
getFamily in class UIComponentpublic java.lang.String getItemDescription()
Return the description for this selection item.
public void setItemDescription(java.lang.String itemDescription)
Set the description for this selection item.
itemDescription - The new descriptionpublic boolean isItemDisabled()
Return the disabled setting for this selection item.
public void setItemDisabled(boolean itemDisabled)
Set the disabled value for this selection item.
itemDisabled - The new disabled flagpublic java.lang.String getItemLabel()
Return the localized label for this selection item.
public void setItemLabel(java.lang.String itemLabel)
Set the localized label for this selection item.
itemLabel - The new localized labelpublic java.lang.Object getItemValue()
Return the server value for this selection item.
public void setItemValue(java.lang.Object itemValue)
Set the server value for this selection item.
itemValue - The new server valuepublic java.lang.Object getValue()
Returns the value property of the
UISelectItem.
public void setValue(java.lang.Object value)
Sets the value property of the
UISelectItem.
value - the new valuepublic java.lang.Object saveState(javax.faces.context.FacesContext context)
StateHolder Gets the state of the instance as a
Serializable Object.
If the class that implements this interface has references to
instances that implement StateHolder (such as a
UIComponent with event handlers, validators, etc.)
this method must call the StateHolder.saveState(javax.faces.context.FacesContext) method on all those
instances as well. This method must not save the state
of children and facets. That is done via the StateManager
This method must not alter the state of the implementing object. In other words, after executing this code:
Object state = component.saveState(facesContext);
component should be the same as before executing
it.
The return from this method must be Serializable
saveState in interface StateHoldersaveState in class UIComponentBase
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
StateHolderPerform any processing required to restore the state from the entries in the state Object.
If the class that implements this interface has references to
instances that also implement StateHolder (such as a
UIComponent with event handlers, validators, etc.)
this method must call the StateHolder.restoreState(javax.faces.context.FacesContext, java.lang.Object) method on all those
instances as well.
restoreState in interface StateHolderrestoreState in class UIComponentBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||