Screen.getWindow()
directly with cast to DialogWindow
if needed.@Deprecated
public class DialogOptions
extends java.lang.Object
getDialogOptions() .setWidth("640px") .setHeight("480px");
Constructor and Description |
---|
DialogOptions()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
DialogOptions |
center()
Deprecated.
Center window only if it is already opened
|
java.lang.Boolean |
getCloseable()
Deprecated.
|
java.lang.Boolean |
getCloseOnClickOutside()
Deprecated.
|
java.lang.Boolean |
getForceDialog()
Deprecated.
|
java.lang.Float |
getHeight()
Deprecated.
|
SizeUnit |
getHeightUnit()
Deprecated.
|
java.lang.Boolean |
getMaximized()
Deprecated.
|
java.lang.Boolean |
getModal()
Deprecated.
|
java.lang.Integer |
getPositionX()
Deprecated.
|
java.lang.Integer |
getPositionY()
Deprecated.
|
java.lang.Boolean |
getResizable()
Deprecated.
|
java.lang.Float |
getWidth()
Deprecated.
|
SizeUnit |
getWidthUnit()
Deprecated.
|
DialogOptions |
setCloseable(java.lang.Boolean closeable)
Deprecated.
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)
Deprecated.
Set closeOnClickOutside to true if a window should be closed by click on outside window area.
|
DialogOptions |
setForceDialog(java.lang.Boolean forceDialog)
Deprecated.
Does not affect window open mode anymore. Use
DialogMode.forceDialog() on controller class
or set forceDialog attribute in XML descriptor. |
DialogOptions |
setHeight(java.lang.Float height)
Deprecated.
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.
|
protected DialogOptions |
setHeight(java.lang.Float height,
SizeUnit unit)
Deprecated.
|
DialogOptions |
setHeight(java.lang.Integer height)
Deprecated.
Use
setHeight(Float) instead. |
DialogOptions |
setHeight(java.lang.String height)
Deprecated.
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()
Deprecated.
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)
Deprecated.
Sets the unit used for the height.
|
DialogOptions |
setMaximized(java.lang.Boolean maximized)
Deprecated.
Set maximized to true if a window should be maximized across the screen.
|
DialogOptions |
setModal(java.lang.Boolean modal)
Deprecated.
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)
Deprecated.
Set the distance of Window left border in pixels from left border of the
containing (main window).
|
DialogOptions |
setPositionY(java.lang.Integer positionY)
Deprecated.
Sets the distance of Window left border in pixels from top border of the
containing (main window).
|
DialogOptions |
setResizable(java.lang.Boolean resizable)
Deprecated.
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)
Deprecated.
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.
|
protected DialogOptions |
setWidth(java.lang.Float width,
SizeUnit unit)
Deprecated.
|
DialogOptions |
setWidth(java.lang.Integer width)
Deprecated.
Use
setWidth(Float) instead. |
DialogOptions |
setWidth(java.lang.String width)
Deprecated.
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()
Deprecated.
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)
Deprecated.
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 representationprotected DialogOptions setHeight(java.lang.Float height, SizeUnit unit)
public 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 representationprotected DialogOptions setWidth(java.lang.Float width, SizeUnit unit)
public java.lang.Boolean getForceDialog()
@Deprecated public DialogOptions setForceDialog(java.lang.Boolean forceDialog)
DialogMode.forceDialog()
on controller class
or set forceDialog attribute in XML descriptor.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