Package org.zkoss.stateless.sul
Class IPopupBase.OpenOptionBuilder
java.lang.Object
org.zkoss.stateless.sul.IPopupBase.OpenOptionBuilder
- All Implemented Interfaces:
org.zkoss.json.JSONAware
- Enclosing interface:
- IPopupBase<I extends IPopupBase>
An OpenOption builder to add options for
IPopupBase.withOpen(OpenOptionBuilder)
to manipulate the open state programmatically.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionposition(IPopupBase.Position position) Specifies this popup open with the given position.Specifies the given reference component id to position the popup.xy(int x, int y) Specifies the x and y coordinates to open the popup at the client.
-
Constructor Details
-
OpenOptionBuilder
public OpenOptionBuilder()
-
-
Method Details
-
xy
Specifies the x and y coordinates to open the popup at the client.- Parameters:
x- The x coordinate.y- The y coordinate.
-
reference
Specifies the given reference component id to position the popup.By default the position
IPopupBase.Position.AT_POINTERis assumed.- Parameters:
refId- the reference component id.
-
position
Specifies this popup open with the given position.- Parameters:
position- The allowed positionIPopupBase.Position
-