|
Préférences
Moteurs de recherche
|
|||||||||||||||||||||||||||||||||
JavaTM Platform, Enterprise Edition, v 5.0
javax.faces.model
|
Constructor Summary | |
---|---|
SelectItem()
Construct a SelectItem with no initialized property
values. |
|
SelectItem(Object value)
Construct a SelectItem with the specified value. |
|
SelectItem(Object value,
String label)
Construct a SelectItem with the specified value and
label. |
|
SelectItem(Object value,
String label,
String description)
Construct a SelectItem instance with the specified
value, label and description. |
|
SelectItem(Object value,
String label,
String description,
boolean disabled)
Construct a SelectItem instance with the specified
property values. |
|
SelectItem(Object value,
String label,
String description,
boolean disabled,
boolean escape)
Construct a SelectItem instance with the specified
property values. |
Method Summary | |
---|---|
String |
getDescription()
Return a description of this item, for use in development tools. |
String |
getLabel()
Return the label of this item, to be rendered visibly for the user. |
Object |
getValue()
Return the value of this item, to be delivered to the model if this item is selected by the user. |
boolean |
isDisabled()
Return the disabled flag for this item, which should modify the rendered output to make this item unavailable for selection by the user if set to true . |
boolean |
isEscape()
Getter for property escape. |
void |
setDescription(String description)
Set the description of this item, for use in development tools. |
void |
setDisabled(boolean disabled)
Set the disabled flag for this item, which should modify the rendered output to make this item unavailable for selection by the user if set to true . |
void |
setEscape(boolean escape)
Setter for property escape. |
void |
setLabel(String label)
Set the label of this item, to be rendered visibly for the user. |
void |
setValue(Object value)
Set the value of this item, to be delivered to the model if this item is selected by this user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SelectItem()
Construct a SelectItem
with no initialized property
values.
public SelectItem(Object value)
Construct a SelectItem
with the specified value. The
label
property will be set to the value (converted to a
String, if necessary), the description
property will be
set to null
, and the disabled
property will
be set to false
.
value
- Value to be delivered to the model if this
item is selected by the user
NullPointerException
- if value
is null
public SelectItem(Object value, String label)
Construct a SelectItem
with the specified value and
label. The description
property will be set to
null
, and the disabled
property will be
set to false
.
value
- Value to be delivered to the model if this
item is selected by the userlabel
- Label to be rendered for this item in the response
NullPointerException
- if value
or label
null
public SelectItem(Object value, String label, String description)
Construct a SelectItem
instance with the specified
value, label and description. This disabled
property
will be set to false
.
value
- Value to be delivered to the model if this
item is selected by the userlabel
- Label to be rendered for this item in the responsedescription
- Description of this item, for use in tools
NullPointerException
- if value
or label
is null
public SelectItem(Object value, String label, String description, boolean disabled)
Construct a SelectItem
instance with the specified
property values.
value
- Value to be delivered to the model if this
item is selected by the userlabel
- Label to be rendered for this item in the responsedescription
- Description of this item, for use in toolsdisabled
- Flag indicating that this option is disabled
NullPointerException
- if value
or label
is null
public SelectItem(Object value, String label, String description, boolean disabled, boolean escape)
Construct a SelectItem
instance with the specified
property values.
value
- Value to be delivered to the model if this
item is selected by the userlabel
- Label to be rendered for this item in the responsedescription
- Description of this item, for use in toolsdisabled
- Flag indicating that this option is disabledescape
- Flag indicating that the text of this option should be
escaped when rendered.
NullPointerException
- if value
or label
is null
Method Detail |
---|
public String getDescription()
Return a description of this item, for use in development tools.
public void setDescription(String description)
Set the description of this item, for use in development tools.
description
- The new descriptionpublic boolean isDisabled()
Return the disabled flag for this item, which should modify the
rendered output to make this item unavailable for selection by the user
if set to true
.
public void setDisabled(boolean disabled)
Set the disabled flag for this item, which should modify the
rendered output to make this item unavailable for selection by the user
if set to true
.
disabled
- The new disabled flagpublic String getLabel()
Return the label of this item, to be rendered visibly for the user.
public void setLabel(String label)
Set the label of this item, to be rendered visibly for the user.
label
- The new label
NullPointerException
- if label
is null
public Object getValue()
Return the value of this item, to be delivered to the model if this item is selected by the user.
public void setValue(Object value)
Set the value of this item, to be delivered to the model if this item is selected by this user.
value
- The new valuepublic boolean isEscape()
public void setEscape(boolean escape)
escape
- New value of property escape.