public class DialogOptions
extends java.lang.Object
getDialogOptions() .setWidth("640px") .setHeight("480px");
A window can be forced to open as a dialog in AbstractFrame.init(java.util.Map<java.lang.String, java.lang.Object>)
using the setForceDialog(Boolean)
method:
getDialogOptions() .setForceDialog(true);
Constructor and Description |
---|
DialogOptions() |
Modifier and Type | Method and Description |
---|---|
DialogOptions |
center()
Center window only if it is already opened
|
java.lang.Boolean |
getCloseable() |
java.lang.Boolean |
getCloseOnClickOutside() |
java.lang.Boolean |
getForceDialog() |
java.lang.Float |
getHeight() |
SizeUnit |
getHeightUnit() |
java.lang.Boolean |
getMaximized() |
java.lang.Boolean |
getModal() |
java.lang.Integer |
getPositionX() |
java.lang.Integer |
getPositionY() |
java.lang.Boolean |
getResizable() |
java.lang.Float |
getWidth() |
SizeUnit |
getWidthUnit() |
DialogOptions |
setCloseable(java.lang.Boolean closeable)
Set closeable option if a window will be opened as a dialog or change closeable option if the window is already opened as a dialog.
|
DialogOptions |
setCloseOnClickOutside(java.lang.Boolean closeOnClickOutside)
Set closeOnClickOutside to true if a window should be closed by click on outside window area.
|
DialogOptions |
setForceDialog(java.lang.Boolean forceDialog)
Force a window manager to open a window as a dialog.
|
DialogOptions |
setHeight(java.lang.Float height)
Set height of a window if it will be opened as a dialog or change height
at run time if the window is already opened as a dialog.
|
DialogOptions |
setHeight(java.lang.Integer height)
Deprecated.
Use
setHeight(Float) instead. |
DialogOptions |
setHeight(java.lang.String height)
Sets the height of a window if it will be opened as a dialog
using String presentation or change height at run time if the window is already opened as a dialog.
|
DialogOptions |
setHeightAuto()
Set height of a window to AUTO if it will be opened as a dialog or change height at run time if the window is already opened as a dialog.
|
DialogOptions |
setHeightUnit(SizeUnit heightUnit)
Sets the unit used for the height.
|
DialogOptions |
setMaximized(java.lang.Boolean maximized)
Set maximized to true if a window should be maximized across the screen.
|
DialogOptions |
setModal(java.lang.Boolean modal)
Set modal option if a window will be opened as a dialog or change modal option if the window is already opened as a dialog.
|
DialogOptions |
setPositionX(java.lang.Integer positionX)
Set the distance of Window left border in pixels from left border of the
containing (main window).
|
DialogOptions |
setPositionY(java.lang.Integer positionY)
Sets the distance of Window left border in pixels from top border of the
containing (main window).
|
DialogOptions |
setResizable(java.lang.Boolean resizable)
Set resizable option if a window will be opened as a dialog or change resizable option if the window is already opened as a dialog.
|
DialogOptions |
setWidth(java.lang.Float width)
Set width of a window if it will be opened as a dialog or change width
at run time if the window is already opened as a dialog.
|
DialogOptions |
setWidth(java.lang.Integer width)
Deprecated.
Use
setWidth(Float) instead. |
DialogOptions |
setWidth(java.lang.String width)
Sets the width of a window if it will be opened as a dialog
using String presentation or change width at run time if the window is already opened as a dialog.
|
DialogOptions |
setWidthAuto()
Set width of a window to AUTO if it will be opened as a dialog or change width at run time if the window is already opened as a dialog.
|
DialogOptions |
setWidthUnit(SizeUnit widthUnit)
Sets the unit used for the width.
|
public java.lang.Boolean getCloseable()
public DialogOptions setCloseable(java.lang.Boolean closeable)
closeable
- closeablepublic SizeUnit getHeightUnit()
public DialogOptions setHeightUnit(SizeUnit heightUnit)
heightUnit
- the unit used for the heightpublic java.lang.Float getHeight()
@Deprecated public DialogOptions setHeight(java.lang.Integer height)
setHeight(Float)
instead.heightUnit
is set then its value will be used, SizeUnit.PIXELS
otherwise.height
- the height value in the unit used for the heightpublic DialogOptions setHeight(java.lang.Float height)
heightUnit
is set then its value will be used, SizeUnit.PIXELS
otherwise.height
- the height value in the unit used for the heightpublic DialogOptions setHeight(java.lang.String height)
Null, empty or 'AUTO' string will produce undefined height and set units to pixels.
height
- height string representationpublic java.lang.Boolean getModal()
public DialogOptions setModal(java.lang.Boolean modal)
modal
- modalpublic java.lang.Boolean getResizable()
public DialogOptions setResizable(java.lang.Boolean resizable)
resizable
- resizablepublic SizeUnit getWidthUnit()
public DialogOptions setWidthUnit(SizeUnit widthUnit)
widthUnit
- the unit used for the widthpublic java.lang.Float getWidth()
@Deprecated public DialogOptions setWidth(java.lang.Integer width)
setWidth(Float)
instead.widthUnit
is set then its value will be used, SizeUnit.PIXELS
otherwise.width
- the width value in the unit used for the heightpublic DialogOptions setWidth(java.lang.Float width)
widthUnit
is set then its value will be used, SizeUnit.PIXELS
otherwise.width
- the width value in the unit used for the heightpublic DialogOptions setWidth(java.lang.String width)
Null, empty or 'AUTO' string will produce undefined width and set units to pixels.
width
- width string representationpublic java.lang.Boolean getForceDialog()
public DialogOptions setForceDialog(java.lang.Boolean forceDialog)
AbstractFrame.init(java.util.Map<java.lang.String, java.lang.Object>)
method before the window is shown.forceDialog
- force dialog optionpublic DialogOptions setWidthAuto()
public DialogOptions setHeightAuto()
public DialogOptions center()
public DialogOptions setCloseOnClickOutside(java.lang.Boolean closeOnClickOutside)
public java.lang.Boolean getCloseOnClickOutside()
public DialogOptions setMaximized(java.lang.Boolean maximized)
public java.lang.Boolean getMaximized()
public java.lang.Integer getPositionX()
public DialogOptions setPositionX(java.lang.Integer positionX)
positionX
- x positionpublic java.lang.Integer getPositionY()
public DialogOptions setPositionY(java.lang.Integer positionY)
positionY
- y position