|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.html.HTMLElement | +--planetj.html.HTMLOption
Field Summary | |
static String |
LABEL
Attribute used for the option's label. |
static String |
OPTION_CLOSE
|
static String |
OPTION_OPEN_END
|
static String |
OPTION_OPEN_START
Option tag start and ends. |
static short |
ORDER_DISPLAY_SORT
Indicates that this option should ordered by its display text in the select |
static short |
ORDER_FIRST
Indicates that this option should be the first one in the select |
static short |
ORDER_LAST
Indicates that this option should be the last one in the select |
static String |
SELECTED
Attribute used to denote option is selected. |
Fields inherited from class planetj.html.HTMLElement |
DISABLED |
Constructor Summary | |
HTMLOption()
|
Method Summary | |
static StringBuffer |
appendOption(String value,
boolean selected,
StringBuffer html)
Appends a HTML option tag for the given values. |
StringBuffer |
appendOption(StringBuffer sb)
Appends a HTML option tag for the given values. |
static StringBuffer |
appendOption(String value,
String displayValue,
boolean selected,
StringBuffer html)
Appends a HTML option tag for the given values. |
static StringBuffer |
appendOption(String value,
String displayValue,
boolean selected,
String styleClass,
StringBuffer html)
Appends a HTML option tag for the given values. |
static StringBuffer |
appendOption(String value,
StringBuffer html)
Appends a HTML option tag for the given values. |
static StringBuffer |
appendOption(String label,
String value,
String displayValue,
boolean selected,
StringBuffer html)
Appends a HTML option tag for the given values. |
static StringBuffer |
appendOption(String label,
String value,
String displayValue,
boolean selected,
String styleClass,
StringBuffer html)
Appends a HTML option tag for the given values. |
static StringBuffer |
appendOption(String value,
String displayValue,
StringBuffer html)
Appends a HTML option tag for the given values. |
static StringBuffer |
appendOptions(List options,
StringBuffer html)
Appends multiple HTML Option objects to a StringBuffer of HTML |
String |
getDisplayText()
Gets this option's display text |
short |
getOrder()
Sets this option's order. |
String |
getStyleClass()
Gets the CSS style class of this option |
String |
getValue()
Returns the value. |
boolean |
isSelected()
Tests if this option is selected |
void |
setDisplayText(String displayText)
Sets this option's display text |
void |
setOrder(short order)
Sets this option's order. |
void |
setSelected(boolean selected)
Sets if this option is selected |
void |
setStyleClass(String styleClass)
Gets the CSS style class of this option |
void |
setValue(String value)
Sets the value. |
String |
toString()
|
Methods inherited from class planetj.html.HTMLElement |
appendAttribute, appendAttribute, appendExtractableHiddenField, getId, isDisplayField, setId |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final short ORDER_FIRST
public static final short ORDER_LAST
public static final short ORDER_DISPLAY_SORT
public static final String SELECTED
public static final String LABEL
public static final String OPTION_OPEN_START
public static final String OPTION_OPEN_END
public static final String OPTION_CLOSE
Constructor Detail |
public HTMLOption()
Method Detail |
public static StringBuffer appendOption(String label, String value, String displayValue, boolean selected, String styleClass, StringBuffer html)
public static StringBuffer appendOption(String label, String value, String displayValue, boolean selected, StringBuffer html)
public static StringBuffer appendOption(String value, String displayValue, StringBuffer html)
public static StringBuffer appendOption(String value, String displayValue, boolean selected, String styleClass, StringBuffer html)
public static StringBuffer appendOption(String value, String displayValue, boolean selected, StringBuffer html)
public static StringBuffer appendOption(String value, StringBuffer html)
public static StringBuffer appendOption(String value, boolean selected, StringBuffer html)
public StringBuffer appendOption(StringBuffer sb)
public static StringBuffer appendOptions(List options, StringBuffer html)
public String getDisplayText()
public short getOrder()
public String getStyleClass()
public String getValue()
public boolean isSelected()
public void setDisplayText(String displayText)
public void setOrder(short order)
public void setSelected(boolean selected)
public void setStyleClass(String styleClass)
public void setValue(String value)
value
- The value to setpublic String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |