Package org.zkoss.stateless.sul
Interface IPopupBase<I extends IPopupBase>
- All Superinterfaces:
IComponent<I>,IHtmlBasedComponent<I>,IXulElement<I>
- All Known Subinterfaces:
IConfirmpopup,IMenupopup,IPopup<I>
Immutable

Popup base component
Support @Action
| Name | Action Type |
|---|---|
| onOpen | ActionData: OpenData
Denotes user has opened or closed a component. |
Position
You can simply specify a popup's position when attaching to a component by
- built-in position
- x, y coordinate
ZK supports the following position string:

- Author:
- katherine
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAn OpenOption builder to add options forwithOpen(OpenOptionBuilder)to manipulate the open state programmatically.static enumSpecify a popup's position when attaching to a component. -
Method Summary
Modifier and TypeMethodDescriptiongetOpen()Returns the open options that passed fromwithOpen(OpenOptionBuilder)default booleanReturns whether this component is visible at client.withOpen(IPopupBase.OpenOptionBuilder builder) Returns a copy ofthisimmutable component with the specifiedspan.Methods inherited from interface org.zkoss.stateless.sul.IComponent
getAction, getActions, getClientAttributes, getId, getMold, getWidgetClass, getWidgetListeners, getWidgetOverrides, 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.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
Method Details
-
isVisible
default boolean isVisible()Returns whether this component is visible at client.Default:
false- Specified by:
isVisiblein interfaceIComponent<I extends IPopupBase>
-
getOpen
Returns the open options that passed fromwithOpen(OpenOptionBuilder)Default:
null -
withOpen
Returns a copy ofthisimmutable component with the specifiedspan.Sets the given open options to this popup to open.
- Parameters:
builder- The allowed values ofIPopupBase.OpenOptionBuilderDefault:
null.- Returns:
- A modified copy of the
thisobject - See Also:
-