|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openfin.desktop.WindowOptions
public class WindowOptions
A class representing the options for a Window.
| Constructor Summary | |
|---|---|
WindowOptions()
Default constructor |
|
WindowOptions(org.json.JSONObject options)
Constructs an instance with a new underlying JSONObject |
|
WindowOptions(String name,
String url)
Contructor with name and url |
|
| Method Summary | |
|---|---|
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 |
protected boolean |
getBooleanValue(String property,
boolean defaultValue)
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. |
boolean |
getDefaultCentered()
The DefaultCentered property specifies that the window will be positioned in the center of the primary monitor when loaded for the first time on a machine. |
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 |
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. |
String |
getName()
Get name of the 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 |
getSaveWindowState()
The SaveWindowState property defines whether or not a window should maintain a persistent cache of its position/size. |
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. |
String |
getUrl()
Get URL of the window |
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 |
setDefaultCentered(boolean defaultCentered)
The DefaultCentered property specifies that the window will be positioned in the center of the primary monitor when loaded for the first time on a machine. |
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 |
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 |
setName(String name)
Set name of the 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 |
setSaveWindowState(boolean saveWindowState)
The SaveWindowState property defines whether or not a window should maintain a persistent cache of its position/size. |
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. |
void |
setUrl(String url)
Set name of the window |
org.json.JSONObject |
toJsonObject()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WindowOptions()
public WindowOptions(String name,
String url)
name - name of the Windowurl - URL of the windowpublic WindowOptions(org.json.JSONObject options)
options - underlying options| Method Detail |
|---|
public void setShowTaskbarIcon(boolean showTaskbarIcon)
showTaskbarIcon - show taskbar icon if truepublic String getName()
public void setName(String name)
name - name of the Windowpublic String getUrl()
public void setUrl(String url)
url - name of the windowpublic 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 setSaveWindowState(boolean saveWindowState)
saveWindowState - value of saveWindowStatepublic boolean getSaveWindowState()
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 void setDefaultCentered(boolean defaultCentered)
defaultCentered - new value of defaultCenteredpublic boolean getDefaultCentered()
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 boolean getBooleanValue(String property,
boolean defaultValue)
protected org.json.JSONObject getJsonValue(String property)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||