public static class PopupWindow.Implementation extends Object implements PopupWindow
PopupWindow.Implementation
Constructor and Description |
---|
Implementation(Component content) |
Modifier and Type | Method and Description |
---|---|
PopupWindow |
closable(boolean closable) |
PopupWindow |
draggable(boolean draggable) |
PopupWindow |
height(float height,
Sizeable.Unit unit)
Sets the height of the popup window.
|
PopupWindow |
location(int x,
int y)
Sets the predefined location for the popup window, default is centered.
|
PopupWindow |
maximized(boolean maximized) |
PopupWindow |
modal(boolean modal) |
PopupWindow |
onClose(Consumer<Window.CloseEvent> closeHandler)
Sets the close handler
|
PopupWindow |
resizable(boolean resizable) |
Window |
show()
Opens and returns the window
|
PopupWindow |
size(float width,
float height,
Sizeable.Unit unit)
Sets the size of the popup window.
|
PopupWindow |
width(float width,
Sizeable.Unit unit)
Sets the width of the popup window.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
For, size
public Implementation(Component content)
public PopupWindow modal(boolean modal)
modal
in interface PopupWindow
modal
- the modal to setpublic PopupWindow resizable(boolean resizable)
resizable
in interface PopupWindow
resizable
- the resizable to setpublic PopupWindow closable(boolean closable)
closable
in interface PopupWindow
closable
- the closable to setpublic PopupWindow draggable(boolean draggable)
draggable
in interface PopupWindow
draggable
- the draggable to setpublic PopupWindow maximized(boolean maximized)
maximized
in interface PopupWindow
maximized
- the maximized to setpublic PopupWindow location(int x, int y)
PopupWindow
location
in interface PopupWindow
public PopupWindow width(float width, Sizeable.Unit unit)
PopupWindow
width
in interface PopupWindow
public PopupWindow height(float height, Sizeable.Unit unit)
PopupWindow
height
in interface PopupWindow
public PopupWindow size(float width, float height, Sizeable.Unit unit)
PopupWindow
size
in interface PopupWindow
public PopupWindow onClose(Consumer<Window.CloseEvent> closeHandler)
PopupWindow
onClose
in interface PopupWindow
public Window show()
PopupWindow
show
in interface PopupWindow