|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectzk.Object
zk.Widget
zul.Widget
zul.sel.Option
public class Option
A HTML option tag.
| Field Summary |
|---|
| Fields inherited from class zk.Widget |
|---|
$weave, auDelay, autag, bindLevel, className, desktop, effects_, firstChild, id, insertingBefore_, inServer, lastChild, nChildren, nextSibling, parent, previousSibling, uuid, widgetName |
| Fields inherited from class zk.Object |
|---|
$class, $oid |
| Method Summary | |
|---|---|
String |
getLabel()
Returns the label of the Listcell it contains, or null
if no such cell. |
int |
getMaxlength()
Returns the maximal length of each item's label. |
String |
getValue()
Returns the value. |
boolean |
isDisabled()
Returns whether it is disabled. |
boolean |
isSelected()
Returns whether it is selected. |
void |
setDisabled(boolean disabled)
Sets whether it is disabled. |
void |
setSelected(boolean selected)
Sets whether it is selected. |
void |
setValue(String value)
Sets the value. |
| Methods inherited from class zul.Widget |
|---|
afterKeyDown_, beforeCtrlKeys_, getContext, getCtrlKeys, getOpenTooltip, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
| Methods inherited from class zk.Object |
|---|
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void setDisabled(boolean disabled)
disabled - public boolean isDisabled()
Default: false.
public void setValue(String value)
value - the value.
Note: the value is application dependent, you can place whatever value you want.
If you are using listitem with HTML Form (and with the name attribute), it is better to specify a String-typed value.
public String getValue()
Default: null.
Note: the value is application dependent, you can place whatever value you want.
If you are using listitem with HTML Form (and with the name attribute), it is better to specify a String-typed value.
public void setSelected(boolean selected)
selected - public boolean isSelected()
Default: false.
public String getLabel()
Listcell it contains, or null
if no such cell.
public int getMaxlength()
Select.getMaxlength().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||