|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.iplanet.jato.view.html.Option
The Option encapsulates and implements the server-side representation of an HTML Option (see HTML Radio and Select tags).
Note - this class is NOT derived from DisplayField. It is merely a convenient way of storing an Option value/label combination.
SelectableGroup sub-types use collections of Options.
OptionList
,
SelectableGroup
,
RadioButtonGroup
,
ListBox
,
ComboBox
Constructor Summary | |
Option(java.lang.String label,
java.lang.String value)
This constructor can be used when creating an Option directly / protected Option() { super(); } /** This constructor can be used when creating an Option directly |
Method Summary | |
java.lang.String |
getLabel()
/ public String toString() { String result="Label[" + label + "]"; result += " Value[" + value + "]"; ; return result; } /** Returns the "label" portion of the option. |
java.lang.String |
getValue()
Returns the "value" portion of the option. |
void |
setLabel(java.lang.String label)
Sets the "label" portion of the option. |
void |
setValue(java.lang.String value)
Sets the "value" portion of the option. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Option(java.lang.String label, java.lang.String value)
label
- The visible portion of the optionvalue
- The model to which this DisplayField is boundMethod Detail |
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
the
- label portion of the optionpublic java.lang.String getValue()
public void setValue(java.lang.String value)
the
- value portion of the option
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |