|
||||||||||
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.wgt.Selectbox
public class Selectbox
A light weight dropdown list.
Default Widget.getZclass()
: z-selectbox.
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 |
getName()
Returns the name of this component. |
int |
getSelectedIndex()
Returns the index of the selected item (-1 if no one is selected). |
int |
getTabindex()
Returns the tab order of this component. |
boolean |
isDisabled()
Returns whether it is disabled. |
void |
setDisabled(boolean disabled)
Sets whether it is disabled. |
void |
setName(String name)
Sets the name of this component. |
void |
setSelectedIndex(int selectedIndex)
Selects the item with the given index. |
void |
setTabindex(int tabindex)
Sets the tab order of this component. |
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 setTabindex(int tabindex)
tabindex
- public int getTabindex()
Default: 0 (means the same as browser's default).
public void setSelectedIndex(int selectedIndex)
selectedIndex
- public int getSelectedIndex()
public void setDisabled(boolean disabled)
disabled
- public boolean isDisabled()
Default: false.
public void setName(String name)
The name is used only to work with "legacy" Web application that handles user's request by servlets. It works only with HTTP/HTML-based browsers. It doesn't work with other kind of clients.
Don't use this method if your application is purely based on ZK's event-driven model.
name
- the name of this component.public String getName()
Default: null.
The name is used only to work with "legacy" Web application that handles user's request by servlets. It works only with HTTP/HTML-based browsers. It doesn't work with other kind of clients.
Don't use this method if your application is purely based on ZK's event-driven model.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |