Package com.iizix.gyro
Class WindowOptions
java.lang.Object
com.iizix.gyro.WindowOptions
Class used to hold the Window options when opening a pop-up window on the client side from a browser session. This class is not used when the client is running inside iiziRun.
- Author:
- Christopher Mindus
- Field SummaryFieldsModifier and TypeFieldDescription- final booleanFlag indicating "spawn mode" is used and the Window will not be tracked.- static final WindowOptions
- Constructor SummaryConstructorsConstructorDescriptionConstructor, spawn mode = false, default width = 600 and height = 450, status bar, no menu bar, scroll bars.- WindowOptions- (boolean spawn) Constructor to set the- spawnmode.- WindowOptions- (int width, int height) Constructor with options: spawn mode = false, status bar, no menu bar and scroll bars.
- Method SummaryModifier and TypeMethodDescription- void- channelMode- (boolean on) Whether or not to display the window in theater mode.- booleanChecks for equality.- void- fullscreen- (boolean on) Whether or not to display the browser in full-screen mode.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.- toString()Outputs a debug string.- void- width- (int width) Sets the width.
- Field Details- SPAWN_BLANK
- spawnpublic final boolean spawnFlag indicating "spawn mode" is used and the Window will not be tracked.
 
- Constructor Details- WindowOptionspublic WindowOptions()Constructor, spawn mode = false, default width = 600 and height = 450, status bar, no menu bar, scroll bars.
- WindowOptionspublic WindowOptions- (boolean spawn) Constructor to set the- spawnmode. If- spawnmode 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. - Parameters:
- spawn- The spawn mode flag.
 
- WindowOptionspublic WindowOptions- (int width, int height) Constructor with options: spawn mode = false, status bar, no menu bar and scroll bars.- Parameters:
- width- The width, minimum 100 pixels (is set automatically).
- height- The height, minimum 100 pixels (is set automatically).
 
 
- Method Details- widthpublic void width- (int width) Sets the width. A minimum value of 100 is set if smaller.- Parameters:
- width- The width in pixels.
- Throws:
- IllegalStateException- If spawn mode is used.
 
- heightpublic void height- (int height) Sets the height. A minimum value of 100 is set if smaller.- Parameters:
- height- The height in pixels.
- Throws:
- IllegalStateException- If spawn mode is used.
 
- channelModepublic void channelMode- (boolean on) Whether or not to display the window in theater mode. Default is no. IE only.- Parameters:
- on- true to turn on, false to turn off.
- Throws:
- IllegalStateException- If spawn mode is used.
 
- fullscreenpublic void fullscreen- (boolean on) Whether or not to display the browser in full-screen mode. Default is no. A window in full-screen mode must also be in theater mode. IE only.- Parameters:
- on- true to turn on, false to turn off.
- Throws:
- IllegalStateException- If spawn mode is used.
 
- locationpublic void location- (boolean on) Whether or not to display the address field. Opera only.- Parameters:
- on- true to turn on, false to turn off.
- Throws:
- IllegalStateException- If spawn mode is used.
 
- resizablepublic void resizable- (boolean on) Whether or not the window is resizable. IE only.- Parameters:
- on- true to turn on, false to turn off.
- Throws:
- IllegalStateException- If spawn mode is used.
 
- setScrollbarspublic void setScrollbars- (boolean on) Whether or not to display scroll bars. IE, Firefox & Opera only.- Parameters:
- on- true to turn on, false to turn off.
- Throws:
- IllegalStateException- If spawn mode is used.
 
- setStatuspublic void setStatus- (boolean on) Whether or not to add a status bar.- Parameters:
- on- true to turn on, false to turn off.
- Throws:
- IllegalStateException- If spawn mode is used.
 
- titlebarpublic void titlebar- (boolean on) Whether or not to display the title bar. Ignored unless the calling application is an HTML Application or a trusted dialog box.- Parameters:
- on- true to turn on, false to turn off.
- Throws:
- IllegalStateException- If spawn mode is used.
 
- toolbarpublic void toolbar- (boolean on) Whether or not to display the browser toolbar. IE and Firefox only.- Parameters:
- on- true to turn on, false to turn off.
- Throws:
- IllegalStateException- If spawn mode is used.
 
- getOptionsGets the options that are used in the window.open function call.- Returns:
- A string as "width=600,height=450,...".
 
- equalsChecks for equality.
- hashCodepublic int hashCode()Hash code.
- toStringOutputs a debug string.