|
||||||||||
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.inp.InputWidget zul.inp.ComboWidget zul.inp.Combobox
public class Combobox
A combobox.
Non-XUL extension. It is used to replace XUL menulist. This class
is more flexible than menulist, such as setAutocomplete(boolean)
ComboWidget.setAutodrop(boolean)
.
Default Widget.getZclass()
: z-combobox.
Like Datebox
,
the value of a read-only comobobox (InputWidget.isReadonly()
) can be changed
by dropping down the list and selecting an combo item
(though users cannot type anything in the input box).
Comboitem
Field Summary |
---|
Fields inherited from class zul.inp.InputWidget |
---|
onChangingDelay, onChangingForced |
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 |
getRepos()
Update the value of the input element in this component |
boolean |
isAutocomplete()
Returns whether to automatically complete this text box by matching the nearest item ( Comboitem . |
void |
setAutocomplete(boolean autocomplete)
Sets whether to automatically complete this text box by matching the nearest item ( Comboitem . |
void |
validateStrict(String val)
called by SimpleConstraint |
Methods inherited from class zul.inp.ComboWidget |
---|
close, enterPressed_, escPressed_, getPopupNode_, getPopupSize_, isAutodrop, isButtonVisible, isOpen, open, presize_, redraw_, redrawpp_, setAutodrop, setButtonVisible, setOpen, slideDown_, slideUp_, syncWidth |
Methods inherited from class zul.inp.InputWidget |
---|
clearErrorMessage, coerceFromString_, coerceToString_, fireOnChange, getCols, getConstraint, getErrorMesssage, getInplaceCSS, getInputNode, getMaxlength, getName, getTabindex, getText, getType, getValue, inRoundedMold, isDisabled, isInplace, isInstant, isMultiline, isReadonly, select, setCols, setConstraint, setDisabled, setErrorMessage, setInplace, setInstant, setMaxlength, setName, setReadonly, setTabindex, setText, setValue, shallUpdate_, showError_, textAttrs_, updateChange_, validate_ |
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 setAutocomplete(boolean autocomplete)
Comboitem
.
autocomplete
- public boolean isAutocomplete()
Comboitem
.
It is also known as auto-type-ahead.
Default: true
If true, the nearest item will be searched and the text box is updated automatically. If false, user has to click the item or use the DOWN or UP keys to select it back.
Don't confuse it with the auto-completion feature mentioned by other framework. Such kind of auto-completion is supported well by listening to the onChanging event.
public void getRepos()
public void validateStrict(String val)
val
- the name of flag, such as "no positive".
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |