Package org.zkoss.stateless.sul
Interface IPopupBase<I extends IPopupBase>
-
- All Superinterfaces:
IComponent<I>,IHtmlBasedComponent<I>,IXulElement<I>
- All Known Subinterfaces:
IMenupopup,IPopup<I>
public interface IPopupBase<I extends IPopupBase> extends IXulElement<I>
ImmutablePopupbase componentSupport @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 Classes Modifier and Type Interface Description static classIPopupBase.OpenOptionBuilderAn OpenOption builder to add options forwithOpen(OpenOptionBuilder)to manipulate the open state programmatically.static classIPopupBase.PositionSpecify a popup's position when attaching to a component.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IPopupBase.OpenOptionBuildergetOpen()Returns the open options that passed fromwithOpen(OpenOptionBuilder)default booleanisVisible()Returns whether this component is visible at client.IwithOpen(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, withWidgetOverrides
-
Methods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHeight, withHflex, withLeft, withRenderdefer, withSclass, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withWidth, withZclass, withZIndex
-
Methods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
-
-
-
Method Detail
-
isVisible
default boolean isVisible()
Returns whether this component is visible at client.Default:
false- Specified by:
isVisiblein interfaceIComponent<I extends IPopupBase>
-
getOpen
@Nullable IPopupBase.OpenOptionBuilder getOpen()
Returns the open options that passed fromwithOpen(OpenOptionBuilder)Default:
null
-
withOpen
I withOpen(@Nullable IPopupBase.OpenOptionBuilder builder)
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:
IPopupBase.OpenOptionBuilder
-
-