|
Oracle Fusion Middleware Java API Reference for Oracle Mobile Application Framework 2.0.0.0.0 E36392-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectoracle.adfmf.javax.faces.model.SelectItem
public class SelectItem
The Mobile Application Framework runtime equivalent of javax.faces.model.SelectItem
.
Application java beans that define an accessor (getItems() by convention) that is of
type SelectItem[]
can be bound to through EL by the AMX selectItems tag:
<amx:selectOneChoice value="#{MyBean.value}">
<selectItems value="#{MyBean.items}"/>
</amx:selectOneChoice>
The SelectItem array is used to populate the available items for selection in the component that nests the selectItems tag.
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)
|
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()
Get the item's escape status |
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)
Set the item's escape status. |
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 the user. |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SelectItem()
public SelectItem(Object value)
value
- Value to be delivered to the model if this item is selected by the user
java.lang.NullPointerException
- - if value
is nullpublic SelectItem(Object value, String label)
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
java.lang.NullPointerException
- - if value
is nullpublic SelectItem(Object value, String label, String description)
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
java.lang.NullPointerException
- - if value
is nullpublic SelectItem(Object value, String label, String description, boolean disabled)
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
java.lang.NullPointerException
- - if value
is nullpublic SelectItem(Object value, String label, String description, boolean disabled, boolean escape)
Method Detail |
---|
public Object getValue()
public void setValue(Object value)
value
- The new value
java.lang.NullPointerException
- - if value
is nullpublic String getLabel()
public void setLabel(String label)
label
- The new label
java.lang.NullPointerException
- - if label
is nullpublic String getDescription()
public void setDescription(String description)
description
- The new descriptionpublic boolean isDisabled()
public void setDisabled(boolean disabled)
disabled
- The new disabled flagpublic boolean isEscape()
public void setEscape(boolean escape)
|
Oracle Fusion Middleware Java API Reference for Oracle Mobile Application Framework 2.0.0.0.0 E36392-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |