|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zul.impl.InputElement
org.zkoss.zul.Textbox
org.zkoss.zul.Bandbox
public class Bandbox
A band box. A bank box consists of an input box (Textbox and
a popup window Bandpopup.
It is similar to Combobox except the popup window could have
any kind of children. For example, you could place a textbox in
the popup to let user search particular items.
Default HtmlBasedComponent.getSclass(): bandbox.
Events: onOpen
Developers can listen to the onOpen event and initializes it
when OpenEvent.isOpen() is true, and/or
clean up if false.
Note: to have better performance, onOpen is sent only if
a non-deferrable event listener is registered
(see Deferrable).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.zkoss.zul.impl.InputElement |
|---|
InputElement.ExtraCtrl |
| Field Summary |
|---|
| Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
RS_NO_DISPLAY, RS_NO_HEIGHT, RS_NO_WIDTH |
| Fields inherited from interface org.zkoss.zk.ui.Component |
|---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
| Constructor Summary | |
|---|---|
Bandbox()
|
|
Bandbox(java.lang.String value)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
void |
closeDropdown()
Closes the popup ( getDropdown()). |
Bandpopup |
getDropdown()
Returns the dropdown window belonging to this band box. |
java.lang.String |
getImage()
Returns the image URI that is displayed as the button to open Bandpopup. |
java.lang.String |
getInnerAttrs()
Generates the Client-Side-Action attributes to the interior tag. |
java.lang.String |
getOuterAttrs()
|
protected int |
getRealStyleFlags()
Returns RS_NO_WIDTH|RS_NO_HEIGHT. |
boolean |
insertBefore(org.zkoss.zk.ui.Component newChild,
org.zkoss.zk.ui.Component refChild)
|
boolean |
isAutodrop()
Returns whether to automatically drop the list if users is changing this text box. |
boolean |
isButtonVisible()
Returns whether the button (on the right of the textbox) is visible. |
boolean |
isChildable()
Childable. |
void |
onChildRemoved(org.zkoss.zk.ui.Component child)
|
void |
setAutodrop(boolean autodrop)
Sets whether to automatically drop the list if users is changing this text box. |
void |
setButtonVisible(boolean visible)
Sets whether the button (on the right of the textbox) is visible. |
void |
setImage(java.lang.String img)
Sets the image URI that is displayed as the button to open Bandpopup. |
void |
setMultiline(boolean multiline)
Sets whether it is multiline. |
void |
setRows(int rows)
Sets the rows. |
| Methods inherited from class org.zkoss.zul.Textbox |
|---|
coerceFromString, coerceToString, getRows, getType, getValue, isMultiline, setType, setValue |
| Methods inherited from class org.zkoss.zul.impl.InputElement |
|---|
checkUserError, clearErrorMessage, getAreaText, getCols, getConstraint, getErrorMessage, getMaxlength, getName, getRawText, getRawValue, getTabindex, getTargetValue, getText, isAsapRequired, isDisabled, isReadonly, isValid, newExtraCtrl, onWrongValue, select, setCols, setConstraint, setConstraint, setDisabled, setMaxlength, setName, setRawValue, setReadonly, setSelectedText, setSelectionRange, setTabindex, setText, showCustomError, validate |
| Methods inherited from class org.zkoss.zul.impl.XulElement |
|---|
getAction, getAllOnClickAttrs, getContext, getPopup, getTooltip, setAction, setContext, setPopup, setTooltip |
| Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
addEventListener, appendAsapAttr, focus, getDraggable, getDroppable, getHeight, getLeft, getRealStyle, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZIndex, removeEventListener, setClass, setDraggable, setDroppable, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZIndex |
| Methods inherited from class org.zkoss.zk.ui.AbstractComponent |
|---|
addAnnotation, addAnnotation, addEventHandler, addSharedAnnotationMap, addSharedEventHandlerMap, appendChild, applyProperties, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDefinition, getDesktop, getEventHandler, getExtraCtrl, getFellow, getFellowIfAny, getId, getListenerIterator, getMold, getMoldURI, getNamespace, getPage, getParent, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, invalidate, isListenerAvailable, isVisible, onChildAdded, onDrawNewChild, redraw, removeAttribute, removeAttribute, removeChild, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPage, setParent, setVariable, setVisible, smartUpdate, smartUpdate, smartUpdate, toString, unsetVariable |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Bandbox()
public Bandbox(java.lang.String value)
throws org.zkoss.zk.ui.WrongValueException
org.zkoss.zk.ui.WrongValueException| Method Detail |
|---|
public Bandpopup getDropdown()
public void closeDropdown()
getDropdown()).
public boolean isAutodrop()
Default: false.
public void setAutodrop(boolean autodrop)
public boolean isButtonVisible()
Default: true.
public void setButtonVisible(boolean visible)
public java.lang.String getImage()
Bandpopup.
Default: "~./zul/img/bandbtn.gif".
public void setImage(java.lang.String img)
Bandpopup.
img - the image URI. If null or empty, it is reset to
the default value: "~./zul/img/bandbtn.gif".public void setMultiline(boolean multiline)
Textbox
setMultiline in class Textboxpublic void setRows(int rows)
Textbox
setRows in class Textboxpublic java.lang.String getOuterAttrs()
getOuterAttrs in class Textboxpublic java.lang.String getInnerAttrs()
XulElement
getInnerAttrs in class Textboxprotected int getRealStyleFlags()
getRealStyleFlags in class org.zkoss.zk.ui.HtmlBasedComponent
public boolean insertBefore(org.zkoss.zk.ui.Component newChild,
org.zkoss.zk.ui.Component refChild)
insertBefore in interface org.zkoss.zk.ui.ComponentinsertBefore in class org.zkoss.zk.ui.AbstractComponentpublic boolean isChildable()
isChildable in interface org.zkoss.zk.ui.ComponentisChildable in class InputElementpublic void onChildRemoved(org.zkoss.zk.ui.Component child)
onChildRemoved in interface org.zkoss.zk.ui.ComponentonChildRemoved in class org.zkoss.zk.ui.AbstractComponentpublic java.lang.Object clone()
clone in interface org.zkoss.zk.ui.Componentclone in class org.zkoss.zk.ui.AbstractComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||