public class WindowOptions extends Object
| Constructor and Description |
|---|
WindowOptions()
Default constructor
|
WindowOptions(org.json.JSONObject options)
Constructs an instance with a new underlying JSONObject
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAlwaysOnBottom()
The AlwaysOnBottom property represents a flag to always position
the window at the bottom of the window stack.
|
boolean |
getAutoShow()
The AutoShow property represents a flag to automatically
show the Window when it is created.
|
protected boolean |
getBooleanValue(String property)
Helper method to extract data field from underlying JSONObject
|
boolean |
getContextMenu()
The ContextMenu property represents a flag to show the
context menu when right-clicking on a window.
|
int |
getCornerRoundingHeight()
The CornerRoundingHeight property represents the rounded
corners to apply.
|
int |
getCornerRoundingWidth()
The CornerRoundingHeight property represents the rounded
corners to apply.
|
int |
getDefaultHeight()
The DefaultWidth property represents the window's
default height in pixels.
|
int |
getDefaultLeft()
The DefaultLeft property represents the window's
default left position.
|
int |
getDefaultTop()
The DefaultTop property represents the window's
default top position.
|
int |
getDefaultWidth()
The DefaultWidth property represents the window's
default width in pixels.
|
protected double |
getDoubleValue(String property)
Helper method to extract data field from underlying JSONObject
|
boolean |
getDraggable()
The Draggable property represents a flag to allow
the user to drag the window by its client area.
|
boolean |
getFrame()
The Frame property represents a flag to show the frame.
|
boolean |
getHideOnClose()
The HideOnClose property represents a flag to allow a window
to be hidden when the close button is clicked.
|
protected int |
getIntegerValue(String property)
Helper method to extract data field from underlying JSONObject
|
protected org.json.JSONObject |
getJson()
Helper method to copy a JSONObject
|
protected org.json.JSONObject |
getJsonValue(String property)
Helper method to extract data field from underlying JSONObject
|
int |
getMaxHeight()
The MaxHeight property represents the maximum height of a window.
|
boolean |
getMaximizable()
The Maximizable property represents a flag that lets the window be maximized.
|
int |
getMaxWidth()
The MaxWidth property represents the maximum width of a window.
|
int |
getMinHeight()
The MinHeight property represents the minimum height of a window.
|
boolean |
getMinimizable() |
int |
getMinWidth()
The MinWidth property represents the minimum width of a window.
|
double |
getOpacity()
The Opacity property represents a flag that specifies
how transparent the window will be.
|
boolean |
getResizable()
The Resizable property represents a flag which allows
the user to resize the window.
|
int |
getResizeRegionBottomRightCorner()
The ResizeRegionBottomRightCorner property defines an additional square region located at the bottom
right corner of a frameless window.
|
int |
getResizeRegionSize()
The ResizeRegionSize property defines a region in pixels that will respond to user mouse interaction for
resizing a frameless window
|
boolean |
getShowTaskbarIcon()
The ShowTaskbarIcon property represents a flag to show
the Window's icon in the taskbar.
|
String |
getState()
The State property represents a string that sets the
window to be "minimized", "maximized", or "normal" on creation.
|
protected String |
getStringValue(String property)
Helper method to extract data field from underlying JSONObject
|
String |
getTaskbarIcon()
The TaskbarIcon property represents the URL of
an icon to be shown on the desktop.
|
void |
setAlwaysOnBottom(boolean alwaysOnBottom)
The AlwaysOnBottom property represents a flag to always position
the window at the bottom of the window stack.
|
void |
setAutoShow(boolean autoShow)
The AutoShow property represents a flag to automatically
show the Window when it is created.
|
void |
setContextMenu(boolean contextMenu)
The ContextMenu property represents a flag to show the
context menu when right-clicking on a window.
|
void |
setCornerRounding(int width,
int height)
The CornerRoundingHeight property represents the rounded
corners to apply.
|
void |
setDefaultHeight(int defaultHeight)
The DefaultWidth property represents the window's
default height in pixels.
|
void |
setDefaultLeft(int defaultLeft)
The DefaultLeft property represents the window's
default left position.
|
void |
setDefaultTop(int defaultTop)
The DefaultTop property represents the window's
default top position.
|
void |
setDefaultWidth(int defaultWidth) |
void |
setDraggable(boolean draggable)
The Draggable property represents a flag to allow
the user to drag the window by its client area.
|
void |
setFrame(boolean frame)
The Frame property represents a flag to show the frame.
|
void |
setHideOnClose(boolean hideOnClose)
The HideOnClose property represents a flag to allow a window
to be hidden when the close button is clicked.
|
void |
setMaxHeight(int maxHeight)
The MaxHeight property represents the maximum height of a window.
|
void |
setMaximizable(boolean maximizable)
The Maximizable property represents a flag that lets the window be maximized.
|
void |
setMaxWidth(int maxWidth)
The MaxWidth property represents the maximum width of a window.
|
void |
setMinHeight(int minHeight)
The MinHeight property represents the minimum height of a window.
|
void |
setMinimizable(boolean maximizable)
The Minimizable property represents a flag that lets the window be minimized.
|
void |
setMinWidth(int minWidth)
The MinWidth property represents the minimum width of a window.
|
void |
setOpacity(double opacity)
The Opacity property represents a flag that specifies
how transparent the window will be.
|
void |
setResizable(boolean resizable)
The Resizable property represents a flag which allows
the user to resize the window.
|
void |
setResizeRegionBottomRightCorner(int resizeRegionBottomRightCorner)
The ResizeRegionBottomRightCorner property defines an additional square region located at the bottom
right corner of a frameless window.
|
void |
setResizeRegionSize(int resizeRegionSize)
The ResizeRegionSize property defines a region in pixels that will respond to user mouse interaction for
resizing a frameless window
Default value: 2
|
void |
setShowTaskbarIcon(boolean showTaskbarIcon)
The ShowTaskbarIcon property represents a flag to show
the Window's icon in the taskbar.
|
void |
setState(String state)
The State property represents a string that sets the
window to be "minimized", "maximized", or "normal" on creation.
|
void |
setTaskbarIcon(String taskbarIcon)
The TaskbarIcon property represents the URL of
an icon to be shown on the desktop.
|
org.json.JSONObject |
toJsonObject() |
public WindowOptions()
public WindowOptions(org.json.JSONObject options)
options - underlying optionspublic void setShowTaskbarIcon(boolean showTaskbarIcon)
showTaskbarIcon - show taskbar icon if truepublic boolean getShowTaskbarIcon()
public void setDefaultWidth(int defaultWidth)
public int getDefaultWidth()
public void setDefaultHeight(int defaultHeight)
defaultHeight - value of defaultHeightpublic int getDefaultHeight()
public void setDefaultTop(int defaultTop)
defaultTop - value of defaultToppublic int getDefaultTop()
public void setDefaultLeft(int defaultLeft)
defaultLeft - value of defaultLeftpublic int getDefaultLeft()
public void setFrame(boolean frame)
frame - value of framepublic boolean getFrame()
public void setResizable(boolean resizable)
resizable - value of resizablepublic boolean getResizable()
public void setAutoShow(boolean autoShow)
autoShow - value of autoShowpublic boolean getAutoShow()
public void setState(String state)
state - value of statepublic String getState()
public void setOpacity(double opacity)
opacity - value of opacitypublic double getOpacity()
public void setCornerRounding(int width,
int height)
width - width of rounded cornersheight - height of rounded cornerspublic int getCornerRoundingHeight()
public int getCornerRoundingWidth()
public void setMinWidth(int minWidth)
minWidth - value of minWidthpublic int getMinWidth()
public void setMaxWidth(int maxWidth)
maxWidth - value of maxWidthpublic int getMaxWidth()
public void setMinHeight(int minHeight)
minHeight - value of minHeightpublic int getMinHeight()
public void setMaxHeight(int maxHeight)
maxHeight - value of maxHeightpublic int getMaxHeight()
public void setAlwaysOnBottom(boolean alwaysOnBottom)
alwaysOnBottom - value of alwaysOnBottompublic boolean getAlwaysOnBottom()
public void setDraggable(boolean draggable)
draggable - value of draggablepublic boolean getDraggable()
public void setMinimizable(boolean maximizable)
maximizable - value of maximizablepublic boolean getMinimizable()
public void setMaximizable(boolean maximizable)
maximizable - value of maximizablepublic boolean getMaximizable()
public void setHideOnClose(boolean hideOnClose)
hideOnClose - value of hideOnClosepublic boolean getHideOnClose()
public void setContextMenu(boolean contextMenu)
contextMenu - value of contextMenupublic boolean getContextMenu()
public void setTaskbarIcon(String taskbarIcon)
taskbarIcon - value of taskbarIconpublic String getTaskbarIcon()
public void setResizeRegionBottomRightCorner(int resizeRegionBottomRightCorner)
resizeRegionBottomRightCorner - an additional square regionpublic int getResizeRegionBottomRightCorner()
public void setResizeRegionSize(int resizeRegionSize)
resizeRegionSize - new value of resizeRegionSizepublic int getResizeRegionSize()
public org.json.JSONObject toJsonObject()
protected org.json.JSONObject getJson()
protected String getStringValue(String property)
protected int getIntegerValue(String property)
protected double getDoubleValue(String property)
protected boolean getBooleanValue(String property)
protected org.json.JSONObject getJsonValue(String property)
Copyright © 2014. All rights reserved.