javax.faces.component
Class SelectItem

java.lang.Object
  extended byjavax.faces.component.SelectItem
All Implemented Interfaces:
java.io.Serializable

public class SelectItem
extends java.lang.Object
implements java.io.Serializable

SelectItem represents a single item in the list of supported items associated with a UISelectMany or UISelectOne component. It is not itself a UIComponent, but one or more SelectItem instances can be utilized in a UISelectItem component.

See Also:
Serialized Form

Constructor Summary
SelectItem(java.lang.Object value, java.lang.String label, java.lang.String description)
          Construct a UISelectItem instance with the specified property values.
 
Method Summary
 java.lang.String getDescription()
          Return a description of this item, for use in development tools.
 java.lang.String getLabel()
          Return the label of this item, to be rendered visibly for the user.
 java.lang.Object getValue()
          Return the value of this item, to be returned as a request parameter if this item is selected by the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectItem

public SelectItem(java.lang.Object value,
                  java.lang.String label,
                  java.lang.String description)

Construct a UISelectItem instance with the specified property values.

Parameters:
value - Value to be returned as a request parameter if this item is selected by the user
label - Label to be rendered for this item in the response
description - Description of this item, for use in tools
Method Detail

getDescription

public java.lang.String getDescription()

Return a description of this item, for use in development tools.


getLabel

public java.lang.String getLabel()

Return the label of this item, to be rendered visibly for the user.


getValue

public java.lang.Object getValue()

Return the value of this item, to be returned as a request parameter if this item is selected by the user.