public class WindowOptions extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
spawn
Flag indicating "spawn mode" is used and the Window will not be tracked.
|
static WindowOptions |
SPAWN_BLANK |
Constructor and Description |
---|
WindowOptions()
Constructor, spawn mode = false, default width = 600 and height = 450, status bar,
no menu bar, scroll bars.
|
WindowOptions(boolean spawn)
Constructor to set the
spawn mode. |
WindowOptions(int width,
int height)
Constructor with options: spawn mode = false, status bar, no menu bar and scroll bars.
|
Modifier and Type | Method and Description |
---|---|
void |
channelMode(boolean on)
Whether or not to display the window in theater mode.
|
boolean |
equals(Object o)
Checks for equality.
|
void |
fullscreen(boolean on)
Whether or not to display the browser in full-screen mode.
|
String |
getOptions()
Gets the options that are used in the window.open function call.
|
int |
hashCode()
Hash code.
|
void |
height(int height)
Sets the height.
|
void |
location(boolean on)
Whether or not to display the address field.
|
void |
menubar(boolean on)
Whether or not to display the menu bar.
|
void |
resizable(boolean on)
Whether or not the window is resizable.
|
void |
setScrollbars(boolean on)
Whether or not to display scroll bars.
|
void |
setStatus(boolean on)
Whether or not to add a status bar.
|
void |
titlebar(boolean on)
Whether or not to display the title bar.
|
void |
toolbar(boolean on)
Whether or not to display the browser toolbar.
|
String |
toString()
Outputs a debug string.
|
void |
width(int width)
Sets the width.
|
public static final WindowOptions SPAWN_BLANK
public final boolean spawn
public WindowOptions()
public WindowOptions(boolean spawn)
spawn
mode. If spawn
mode is false, these settings are preset:
default width = 600 and height = 450, status bar, no menu bar, scroll bars.
"Spawn mode" means that JavaScript "window.open(...)" is not used, but rather a creation of a hyperlink element that is clicked. This prevents blocking and does not enable setting width, height, nor checking when the window is closed.
spawn
- The spawn mode flag.public WindowOptions(int width, int height)
width
- The width, minimum 100 pixels (is set automatically).height
- The height, minimum 100 pixels (is set automatically).public void width(int width)
width
- The width in pixels.IllegalStateException
- If spawn mode is used.public void height(int height)
height
- The height in pixels.IllegalStateException
- If spawn mode is used.public void channelMode(boolean on)
on
- true to turn on, false to turn off.IllegalStateException
- If spawn mode is used.public void fullscreen(boolean on)
on
- true to turn on, false to turn off.IllegalStateException
- If spawn mode is used.public void location(boolean on)
on
- true to turn on, false to turn off.IllegalStateException
- If spawn mode is used.public void menubar(boolean on)
on
- true to turn on, false to turn off.IllegalStateException
- If spawn mode is used.public void resizable(boolean on)
on
- true to turn on, false to turn off.IllegalStateException
- If spawn mode is used.public void setScrollbars(boolean on)
on
- true to turn on, false to turn off.IllegalStateException
- If spawn mode is used.public void setStatus(boolean on)
on
- true to turn on, false to turn off.IllegalStateException
- If spawn mode is used.public void titlebar(boolean on)
on
- true to turn on, false to turn off.IllegalStateException
- If spawn mode is used.public void toolbar(boolean on)
on
- true to turn on, false to turn off.IllegalStateException
- If spawn mode is used.public String getOptions()
public int hashCode()
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.