Class WLink.Builder
- java.lang.Object
-
- com.github.bordertech.wcomponents.WLink.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WLinkbuild()Build the attributes list for new window.WLink.Builderdirectories(boolean val)Sets whether the target window should contain the standard browser directory buttons.WLink.Builderheight(int height)Sets the target window's height.WLink.Builderleft(int val)Sets the X-axis location of the browser window.WLink.Builderlocation(boolean val)Sets whether the target window should have the browser location input field visible.WLink.Buildermenubar(boolean val)Sets whether the target window should have the browser menu bar visible.WLink.Builderresizable(boolean val)Sets whether the target window should be able to be resized.WLink.Builderscrollbars(boolean val)Sets whether the target window should have scrollbars visible.WLink.Builderstatus(boolean val)Sets whether the target window should have the browser status bar visible.WLink.Buildertoolbar(boolean val)Sets whether the target window should have the browser toolbar visible.WLink.Buildertop(int val)Sets the Y-axis location of the browser window.WLink.Builderwidth(int width)Sets the target window's width.WLink.BuilderwindowName(String windowName)Sets the target window name.
-
-
-
Field Detail
-
QUOTE
public static final String QUOTE
Used to quote attributes in the windowAttributes String.- See Also:
- Constant Field Values
-
SEPARATOR
public static final String SEPARATOR
Used to separate attributes in the windowAttributes String.- See Also:
- Constant Field Values
-
-
Method Detail
-
windowName
public WLink.Builder windowName(String windowName)
Sets the target window name.- Parameters:
windowName- the target window name.- Returns:
- this builder.
-
width
public WLink.Builder width(int width)
Sets the target window's width.- Parameters:
width- the window width, in pixels.- Returns:
- this builder.
-
height
public WLink.Builder height(int height)
Sets the target window's height.- Parameters:
height- the window height, in pixels.- Returns:
- this builder.
-
resizable
public WLink.Builder resizable(boolean val)
Sets whether the target window should be able to be resized.- Parameters:
val- true if the window should be resizable, false if not.- Returns:
- this builder.
-
scrollbars
public WLink.Builder scrollbars(boolean val)
Sets whether the target window should have scrollbars visible.- Parameters:
val- true if the window should have scrollbars visible, false if not.- Returns:
- this builder.
-
toolbar
public WLink.Builder toolbar(boolean val)
Sets whether the target window should have the browser toolbar visible.- Parameters:
val- true if the window should have the toolbar visible, false if not.- Returns:
- this builder.
-
location
public WLink.Builder location(boolean val)
Sets whether the target window should have the browser location input field visible.- Parameters:
val- true if the window should have the location visible, false if not.- Returns:
- this builder.
-
directories
public WLink.Builder directories(boolean val)
Sets whether the target window should contain the standard browser directory buttons.- Parameters:
val- true the target window should contain the standard browser directory buttons, false if not.- Returns:
- this builder.
-
status
public WLink.Builder status(boolean val)
Sets whether the target window should have the browser status bar visible.- Parameters:
val- true if the window should have the status visible, false if not.- Returns:
- this builder.
-
menubar
public WLink.Builder menubar(boolean val)
Sets whether the target window should have the browser menu bar visible.- Parameters:
val- true if the window should have the menu bar visible, false if not.- Returns:
- this builder.
-
left
public WLink.Builder left(int val)
Sets the X-axis location of the browser window.- Parameters:
val- the location for the left side of the browser window, in pixels.- Returns:
- this builder.
-
top
public WLink.Builder top(int val)
Sets the Y-axis location of the browser window.- Parameters:
val- the location for the top side of the browser window, in pixels.- Returns:
- this builder.
-
build
public WLink build()
Build the attributes list for new window.- Returns:
- a new WLink, configured with the attributes from this builder.
-
-