|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object zk.Object zk.Widget zul.Widget zul.sel.Select
public class Select
A HTML select 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 | |
---|---|
void |
clearSelection()
Clears the selection. |
int |
getMaxlength()
Returns the maximal length of each item's label. |
String |
getName()
Returns the name of this component. |
int |
getRows()
Returns the rows. |
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. |
boolean |
isMultiple()
Returns whether multiple selections are allowed. |
void |
selectItem(Option item)
Deselects all of the currently selected items and selects the given item. |
void |
setDisabled(boolean disabled)
Sets whether it is disabled. |
void |
setMaxlength(int maxlength)
Sets the maximal length of each item's label. |
void |
setMultiple(boolean multiple)
Sets whether multiple selections are allowed. |
void |
setName(String name)
Sets the name of this component. |
void |
setRows(int rows)
Sets the rows. |
void |
setSelectedIndex(int selectedIndex)
Deselects all of the currently selected items and selects the item with the given index. |
void |
setTabindex(int tabindex)
Sets the tab order of this component. |
void |
toggleItemSelection(Option item)
If the specified item is selected, it is deselected. |
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 setMultiple(boolean multiple)
multiple
- public boolean isMultiple()
Default: false.
public void setDisabled(boolean disabled)
disabled
- public boolean isDisabled()
Default: false.
public void setSelectedIndex(int selectedIndex)
selectedIndex
- public int getSelectedIndex()
public void setTabindex(int tabindex)
tabindex
- public int getTabindex()
Default: 0 (means the same as browser's default).
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.
public void setRows(int rows)
Note: if both Widget.setHeight(_global_.String)
is specified with non-empty,
setRows(int)
is ignored
rows
- public int getRows()
Default: 0.
public void setMaxlength(int maxlength)
maxlength
- public int getMaxlength()
public void toggleItemSelection(Option item)
item
- public void selectItem(Option item)
item
- the item to select. If null, all items are deselected.public void clearSelection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |