org.directwebremoting.ui.browser
Class Window.OptionBuilder

java.lang.Object
  extended by org.directwebremoting.ui.browser.Window.OptionBuilder
Enclosing class:
Window

public static class Window.OptionBuilder
extends java.lang.Object

Aide to building windowFeatures strings. The list of window options was taken from the DMoz reference to window.open


Constructor Summary
Window.OptionBuilder()
           
 
Method Summary
 Window.OptionBuilder height(int value)
          Specifies the height of the content area, viewing area of the new secondary window in pixels.
 Window.OptionBuilder hideLocation()
          If used, then the new secondary window is requested not to render the Location/Address bar
 Window.OptionBuilder hideMenubar()
          If used, then the new secondary window is requested to not render the menu-bar.
 Window.OptionBuilder hideScrollbars()
          If used, the new secondary window is requested to not show horizontal and/or vertical scrollbar(s) if the document doesn't fit into the window's viewport.
 Window.OptionBuilder hideStatus()
          If used, then the new secondary window is requested to not display a status bar.
 Window.OptionBuilder hideToolbar()
          If used, then the new secondary window is requested to not render the navigation toolbar.
 Window.OptionBuilder left(int value)
          Specifies the distance the new window is placed from the left side of the work area for applications of the user's operating system to the leftmost border (resizing handle) of the browser window.
 Window.OptionBuilder notResizable()
          If used, the new secondary window is requested to not be resizable.
 Window.OptionBuilder top(int value)
          Specifies the distance the new window is placed from the top side of the work area for applications of the user's operating system to the topmost border (resizing handle) of the browser window.
 Window.OptionBuilder width(int value)
          Specifies the width of the content area, viewing area of the new secondary window in pixels.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Window.OptionBuilder

public Window.OptionBuilder()
Method Detail

left

public Window.OptionBuilder left(int value)
Specifies the distance the new window is placed from the left side of the work area for applications of the user's operating system to the leftmost border (resizing handle) of the browser window. The new window can not be initially positioned off-screen.


top

public Window.OptionBuilder top(int value)
Specifies the distance the new window is placed from the top side of the work area for applications of the user's operating system to the topmost border (resizing handle) of the browser window. The new window can not be initially positioned off-screen.


height

public Window.OptionBuilder height(int value)
Specifies the height of the content area, viewing area of the new secondary window in pixels. The height value includes the height of the horizontal scrollbar if present. The minimum required value is 100.


width

public Window.OptionBuilder width(int value)
Specifies the width of the content area, viewing area of the new secondary window in pixels. The width value includes the width of the vertical scrollbar if present. The width value does not include the sidebar if it is expanded. The minimum required value is 100.


hideMenubar

public Window.OptionBuilder hideMenubar()
If used, then the new secondary window is requested to not render the menu-bar.

Certain browsers may ignore this hint in some situations.


hideToolbar

public Window.OptionBuilder hideToolbar()
If used, then the new secondary window is requested to not render the navigation toolbar. Some browsers may extend this to not render any toolbars.

Certain browsers may ignore this hint in some situations.


hideLocation

public Window.OptionBuilder hideLocation()
If used, then the new secondary window is requested not to render the Location/Address bar

Certain browsers may ignore this hint in some situations.


hideStatus

public Window.OptionBuilder hideStatus()
If used, then the new secondary window is requested to not display a status bar.

Many browsers ignore this hint.


notResizable

public Window.OptionBuilder notResizable()
If used, the new secondary window is requested to not be resizable.

Many browsers ignore this hint, and its use use is strongly discouraged for accessibility reasons


hideScrollbars

public Window.OptionBuilder hideScrollbars()
If used, the new secondary window is requested to not show horizontal and/or vertical scrollbar(s) if the document doesn't fit into the window's viewport. Certain browsers ignore this hint, and its use use is strongly discouraged for accessibility reasons


Copyright ยจ 2008