|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.html.HTMLElement
planetj.html.HTMLItem
An item in a list of items (such as a SELECT element, or group of radio button or checkbox inputs)
Field Summary | |
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 |
Fields inherited from class planetj.html.HTMLElement |
DISABLED, FOCUS_HTML_INPUT |
Constructor Summary | |
HTMLItem()
|
Method Summary | |
java.lang.String |
getDisplayText()
Gets this option's display text |
short |
getOrder()
Sets this option's order. |
java.lang.String |
getStyleClass()
Gets the CSS style class of this option |
java.lang.String |
getValue()
Returns the value. |
boolean |
isSelected()
Tests if this option is selected |
void |
setDisplayText(java.lang.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 |
static boolean |
setSelected(java.util.List htmlItems,
Field valueToSelect)
Looks through a list of HTMLItems and sets the selected property on each one. |
void |
setStyleClass(java.lang.String styleClass)
Gets the CSS style class of this option |
void |
setValue(java.lang.String value)
Sets the value. |
Methods inherited from class planetj.html.HTMLElement |
appendAttribute, appendAttribute, appendExtractableHiddenField, getFocusHTMLInput, getId, isDisplayField, setFocusHTMLInput, setId |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final short ORDER_FIRST
public static final short ORDER_LAST
public static final short ORDER_DISPLAY_SORT
Constructor Detail |
public HTMLItem()
Method Detail |
public static boolean setSelected(java.util.List htmlItems, Field valueToSelect) throws CMException
CMException
public java.lang.String getDisplayText()
public short getOrder()
public java.lang.String getStyleClass()
public java.lang.String getValue()
public boolean isSelected()
public void setDisplayText(java.lang.String displayText)
public void setOrder(short order)
public void setSelected(boolean selected)
public void setStyleClass(java.lang.String styleClass)
public void setValue(java.lang.String value)
value
- The value to set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |