Package org.zkoss.stateless.sul
Interface ICombobutton
- All Superinterfaces:
IAnyGroup<ICombobutton>,IButtonBase<ICombobutton>,IChildrenOfInputgroup<ICombobutton>,IComponent<ICombobutton>,IHtmlBasedComponent<ICombobutton>,ILabelElement<ICombobutton>,ILabelImageElement<ICombobutton>,ISingleChildable<ICombobutton,,IPopupBase> IXulElement<ICombobutton>
public interface ICombobutton
extends IButtonBase<ICombobutton>, ISingleChildable<ICombobutton,IPopupBase>, IAnyGroup<ICombobutton>
Immutable
Combobutton component
A Combobutton is a special Button that embeds a popup or menupopup child.
Support @Action
| Name | Action Type |
|---|---|
| onOpen | ActionData: OpenData
Denotes when the child popup is opened or closed. |
- Author:
- katherine
- See Also:
-
Combobutton
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeICombobutton.static classBuilds an updater of typeICombobuttonforUiAgent.smartUpdate(Locator, SmartUpdater).Nested classes/interfaces inherited from interface org.zkoss.stateless.sul.IButtonBase
IButtonBase.Direction, IButtonBase.Orient, IButtonBase.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ICombobuttonConstant for default attributes of this immutable component. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns the client widget class.default booleanReturns whether to automatically drop the popup if user hovers on this Combobutton.static <I extends IPopupBase>
ICombobuttonof(I iPopup) Returns the instance with the given popup * @param popup The popup of the componentstatic ICombobuttonReturns the instance with the given label.static <I extends IPopupBase>
ICombobuttonReturns the instance with the given label and popup.static ICombobuttonReturns the instance with the given label and image.static ICombobuttonReturns the instance with the given dir.static ICombobuttonReturns the instance with the given id.static ICombobuttonReturns the instance with the given image.static ICombobuttonofOrient(IButtonBase.Orient orient) Returns the instance with the given orient.static ICombobuttonofType(IButtonBase.Type type) Returns the instance with the given type.withAutodrop(boolean autodrop) Returns a copy ofthisimmutable component with the specifiedautodrop.Methods inherited from interface org.zkoss.stateless.sul.IButtonBase
checkOrient, getAutodisable, getDir, getHref, getOrient, getTarget, getType, getUpload, isDisabled, withAutodisable, withDir, withDir, withDisabled, withHref, withOrient, withOrient, withTarget, withType, withType, withUploadMethods inherited from interface org.zkoss.stateless.sul.IComponent
getAction, getActions, getClientAttributes, getId, getMold, getWidgetListeners, getWidgetOverrides, isVisible, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withActions, withActions, withClientAttribute, withClientAttributes, withId, withMold, withVisible, withWidgetClass, withWidgetListener, withWidgetListeners, withWidgetOverride, withWidgetOverridesMethods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getSkeleton, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHeight, withHflex, withLeft, withRenderdefer, withSclass, withSkeleton, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withWidth, withZclass, withZIndexMethods inherited from interface org.zkoss.stateless.sul.ILabelElement
getLabel, withLabelMethods inherited from interface org.zkoss.stateless.sul.ILabelImageElement
getHoverImage, getIconSclass, getIconSclasses, getIconTooltip, getIconTooltips, getImage, isPreloadImage, withHoverImage, withIconSclass, withIconSclasses, withIconTooltip, withIconTooltips, withImage, withPreloadImageMethods inherited from interface org.zkoss.stateless.sul.ISingleChildable
getChild, withChildMethods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
Field Details
-
DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Details
-
getWidgetClass
Returns the client widget class.Default:
"zul.wgt.Combobutton"- Specified by:
getWidgetClassin interfaceIComponent<ICombobutton>
-
isAutodrop
default boolean isAutodrop()Returns whether to automatically drop the popup if user hovers on this Combobutton.Default:
false. -
withAutodrop
Returns a copy ofthisimmutable component with the specifiedautodrop.Sets whether to automatically drop the popup if user hovers on this Combobutton.
- Parameters:
autodrop- Whether to automatically drop the popup if user hovers on this Combobutton.Default:
false.- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the given label and popup.- Parameters:
label- The label that the componentpopup- The popup of the component
-
of
Returns the instance with the given popup * @param popup The popup of the component -
of
Returns the instance with the given label.- Parameters:
label- The label that the component
-
of
Returns the instance with the given label and image.- Parameters:
label- The label that the button holds.image- The image that the button holds.
-
ofImage
Returns the instance with the given image.- Parameters:
image- The image that the button holds.
-
ofOrient
Returns the instance with the given orient.- Parameters:
orient- The button orient
-
ofType
Returns the instance with the given type.- Parameters:
type- The button type
-
ofDir
Returns the instance with the given dir.- Parameters:
dir- The button dir
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-