|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfc.web.forms.Select.Option
public static final class Select.Option
Represents an option in the selection list
Constructor Summary | |
---|---|
Select.Option(java.lang.String text)
Constructs a new unselected option with the specified html text and no separate value. |
|
Select.Option(java.lang.String text,
boolean selected)
Constructs a new option with the specified text (and no separate value tag). |
|
Select.Option(java.lang.String text,
java.lang.String value)
Constructs a new unselected option with the specified text and value of the option tag. |
|
Select.Option(java.lang.String text,
java.lang.String value,
boolean selected)
Constructs a new option with the specified text and value of the option tag. |
Method Summary | |
---|---|
java.lang.String |
getValue()
Returns the value of this option tag. |
java.lang.String |
render(boolean selected)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Select.Option(java.lang.String text, java.lang.String value, boolean selected)
text
- the html text of the option tagvalue
- the value of the option tagselected
- true if this option is selected
by default. If more than one selected option
is added to a select field and that select
field does not have it's multiple attribute
set, then the option displayed as selected is
browser dependent (Moz1, IE6 show
the last selected, N4 the first). More than one
selected option should not be shown for non multiple
select fields anyway.public Select.Option(java.lang.String text, java.lang.String value)
text
- the html text of the option tagvalue
- the value of the option tagpublic Select.Option(java.lang.String text, boolean selected)
text
- the html text of the option tagselected
- true to select this option
false otherwisepublic Select.Option(java.lang.String text)
text
- the html text of the option tagMethod Detail |
---|
public java.lang.String getValue()
public java.lang.String render(boolean selected)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |