Class BrowserWindowSettings
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.browser.window.BrowserWindowSettings
- All Implemented Interfaces:
HasHandlers
Allows specifying additional browser window settings when calling the underlying JavaScript or OpenFin call to create
the child window in
MultiWindow.open()
.-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Should a new window be activated when opened to ensure it's on top?boolean
Persistent setting to position the window at the top of the window stack.Initial height to assign to a new child window created byMultiWindow.open()
.Initial width to assign to a new child window created byMultiWindow.open()
.static BrowserWindowSettings
getOrCreateRef
(JavaScriptObject jsObj) getTab()
Should the window be opened in a tab or a new browser window in fallback mode without OpenFin? Unless set explicitly false, fallback mode will open tabs for the new window.setActivateOnOpen
(boolean activateOnOpen) Should a new window be activated when opened to ensure it's on top?setAlwaysOnTop
(boolean alwaysOnTop) Persistent setting to position the window at the top of the window stack.setDefaultHeight
(Integer defaultHeight) Initial height to assign to a new child window created byMultiWindow.open()
.setDefaultWidth
(Integer defaultWidth) Initial width to assign to a new child window created byMultiWindow.open()
.Should the window be opened in a tab or a new browser window in fallback mode without OpenFin? Unless set explicitly false, fallback mode will open tabs for the new window.Methods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
BrowserWindowSettings
public BrowserWindowSettings() -
BrowserWindowSettings
-
-
Method Details
-
getOrCreateRef
-
setActivateOnOpen
Should a new window be activated when opened to ensure it's on top?- Parameters:
activateOnOpen
- New activateOnOpen value. Default value is true- Returns:
BrowserWindowSettings
instance, for chaining setter calls
-
getActivateOnOpen
public boolean getActivateOnOpen()Should a new window be activated when opened to ensure it's on top?- Returns:
- Current activateOnOpen value. Default value is true
-
setAlwaysOnTop
Persistent setting to position the window at the top of the window stack.- Parameters:
alwaysOnTop
- New alwaysOnTop value. Default value is false- Returns:
BrowserWindowSettings
instance, for chaining setter calls
-
getAlwaysOnTop
public boolean getAlwaysOnTop()Persistent setting to position the window at the top of the window stack.- Returns:
- Current alwaysOnTop value. Default value is false
-
setDefaultHeight
Initial height to assign to a new child window created byMultiWindow.open()
.- Parameters:
defaultHeight
- New defaultHeight value. Default value is null- Returns:
BrowserWindowSettings
instance, for chaining setter calls
-
getDefaultHeight
Initial height to assign to a new child window created byMultiWindow.open()
.- Returns:
- Current defaultHeight value. Default value is null
-
setDefaultWidth
Initial width to assign to a new child window created byMultiWindow.open()
.- Parameters:
defaultWidth
- New defaultWidth value. Default value is null- Returns:
BrowserWindowSettings
instance, for chaining setter calls
-
getDefaultWidth
Initial width to assign to a new child window created byMultiWindow.open()
.- Returns:
- Current defaultWidth value. Default value is null
-
setTab
Should the window be opened in a tab or a new browser window in fallback mode without OpenFin? Unless set explicitly false, fallback mode will open tabs for the new window.- Parameters:
tab
- New tab value. Default value is null- Returns:
BrowserWindowSettings
instance, for chaining setter calls
-
getTab
Should the window be opened in a tab or a new browser window in fallback mode without OpenFin? Unless set explicitly false, fallback mode will open tabs for the new window.- Returns:
- Current tab value. Default value is null
-