public class WindowOptions extends JsonBean
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
AcceleratorOptions |
getAccelerator()
Get keyboard shortcut options.
|
boolean |
getAutoShow()
The AutoShow property represents a flag to automatically
show the Window when it is created.
|
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.
|
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.
|
org.json.JSONObject |
getJson()
Gets the underlying JSONObject
|
LayoutOptions |
getLayoutOptions() |
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.
|
String |
getPreload()
Get the URL of the preload script that will be retrieved (and cached, if needed) and eval'ed before any other script.
|
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.
|
String |
getTaskbarIcon()
The TaskbarIcon property represents the URL of
an icon to be shown on the desktop.
|
String |
getUrl()
Get URL of the window
|
boolean |
isDisableIabSecureLogging()
The disableIabSecureLogging property represents a flag to disable secure logging in IAB
Default: false
|
void |
setAccelerator(AcceleratorOptions acceleratorOptions)
Set keyboard shortcut options.
|
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 |
setDisableIabSecureLogging(boolean disable)
The disableIabSecureLogging property represents a flag to disable secure logging in IAB
Default: false
|
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 |
setLayoutOptions(LayoutOptions layoutOptions) |
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 |
setPreload(String url)
Set A URL of the preload script that will be retrieved (and cached, if needed) and eval'ed before any other script.
|
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 for
a child window.
|
void |
setUrl(String url)
Set name of the window
|
get, getArray, getBoolean, getBooleanValue, getBooleanValue, getDoubleValue, getDoubleValue, getInteger, getIntegerValue, getJsonBean, getJsonBean, getJsonBeanList, getJsonCopy, getJsonValue, getList, getRectangle, getString, put, setArray, setBoolean, setInteger, setJsonArray, setJsonBean, setLong, setRectangle, setString, toString
public WindowOptions()
public WindowOptions(String name, String url)
name
- name of the Windowurl
- URL of the windowpublic WindowOptions(org.json.JSONObject options)
options
- underlying optionspublic 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 String getPreload()
public void setPreload(String url)
url
- of the preload scriptpublic boolean isDisableIabSecureLogging()
public void setDisableIabSecureLogging(boolean disable)
disable
- new value of disableIabSecureLoggingpublic void setAccelerator(AcceleratorOptions acceleratorOptions)
acceleratorOptions
- Keyboard shortcuts options for devtools, zoom, reload, and reload ignoring cache.public AcceleratorOptions getAccelerator()
public LayoutOptions getLayoutOptions()
public void setLayoutOptions(LayoutOptions layoutOptions)
Copyright © 2022. All rights reserved.