Class NavigationBarViewState
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.widgets.layout.NavigationBarViewState
- All Implemented Interfaces:
HasHandlers
Encapsulates state of a
NavigationBar
's view. A
NavigationBarViewState
object is created to pass to NavigationBar.setViewState()
so that multiple properties
of the NavigationBar
can be changed at once.-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe newNavigationBar.alwaysShowLeftButtonTitle
setting.String[]
The newNavigationBar.controls
setting.Canvas[]
The newNavigationBar.controls
setting.The newNavigationBar.leftButtonTitle
setting.static NavigationBarViewState
getOrCreateRef
(JavaScriptObject jsObj) The newNavigationBar.shortLeftButtonTitle
setting.The newNavigationBar.showLeftButton
setting.getTitle()
The newNavigationBar.title
setting.setAlwaysShowLeftButtonTitle
(Boolean alwaysShowLeftButtonTitle) The newNavigationBar.alwaysShowLeftButtonTitle
setting.setControls
(Canvas... controls) The newNavigationBar.controls
setting.setControls
(String... controls) The newNavigationBar.controls
setting.setLeftButtonTitle
(String leftButtonTitle) The newNavigationBar.leftButtonTitle
setting.setShortLeftButtonTitle
(String shortLeftButtonTitle) The newNavigationBar.shortLeftButtonTitle
setting.setShowLeftButton
(Boolean showLeftButton) The newNavigationBar.showLeftButton
setting.The newNavigationBar.title
setting.void
void
void
void
void
void
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
-
NavigationBarViewState
public NavigationBarViewState() -
NavigationBarViewState
-
-
Method Details
-
getOrCreateRef
-
setAlwaysShowLeftButtonTitle
The newNavigationBar.alwaysShowLeftButtonTitle
setting. If unset, thealwaysShowLeftButtonTitle
setting is not changed.- Parameters:
alwaysShowLeftButtonTitle
- New alwaysShowLeftButtonTitle value. Default value is null- Returns:
NavigationBarViewState
instance, for chaining setter calls
-
getAlwaysShowLeftButtonTitle
The newNavigationBar.alwaysShowLeftButtonTitle
setting. If unset, thealwaysShowLeftButtonTitle
setting is not changed.- Returns:
- Current alwaysShowLeftButtonTitle value. Default value is null
-
setControls
The newNavigationBar.controls
setting. If unset, thecontrols
array is not changed.- Parameters:
controls
- New controls value. Default value is null- Returns:
NavigationBarViewState
instance, for chaining setter calls
-
getControls
The newNavigationBar.controls
setting. If unset, thecontrols
array is not changed.- Returns:
- Current controls value. Default value is null
-
setControls
The newNavigationBar.controls
setting. If unset, thecontrols
array is not changed.- Parameters:
controls
- New controls value. Default value is null- Returns:
NavigationBarViewState
instance, for chaining setter calls
-
getControlsAsCanvasArray
The newNavigationBar.controls
setting. If unset, thecontrols
array is not changed.- Returns:
- Current controls value. Default value is null
-
setLeftButtonTitle
The newNavigationBar.leftButtonTitle
setting. If unset, theleftButtonTitle
is not changed.- Parameters:
leftButtonTitle
- New leftButtonTitle value. Default value is null- Returns:
NavigationBarViewState
instance, for chaining setter calls- See Also:
-
getLeftButtonTitle
The newNavigationBar.leftButtonTitle
setting. If unset, theleftButtonTitle
is not changed.- Returns:
- Current leftButtonTitle value. Default value is null
- See Also:
-
setShortLeftButtonTitle
The newNavigationBar.shortLeftButtonTitle
setting. If unset, theshortLeftButtonTitle
is not changed.- Parameters:
shortLeftButtonTitle
- New shortLeftButtonTitle value. Default value is null- Returns:
NavigationBarViewState
instance, for chaining setter calls- See Also:
-
getShortLeftButtonTitle
The newNavigationBar.shortLeftButtonTitle
setting. If unset, theshortLeftButtonTitle
is not changed.- Returns:
- Current shortLeftButtonTitle value. Default value is null
- See Also:
-
setShowLeftButton
The newNavigationBar.showLeftButton
setting. If unset, theshowLeftButton
setting is not changed.- Parameters:
showLeftButton
- New showLeftButton value. Default value is null- Returns:
NavigationBarViewState
instance, for chaining setter calls
-
getShowLeftButton
The newNavigationBar.showLeftButton
setting. If unset, theshowLeftButton
setting is not changed.- Returns:
- Current showLeftButton value. Default value is null
-
setTitle
The newNavigationBar.title
setting. If unset, thetitle
is not changed.- Parameters:
title
- New title value. Default value is null- Returns:
NavigationBarViewState
instance, for chaining setter calls- See Also:
-
getTitle
The newNavigationBar.title
setting. If unset, thetitle
is not changed.- Returns:
- Current title value. Default value is null
- See Also:
-
unsetShowLeftButton
public void unsetShowLeftButton() -
unsetLeftButtonTitle
public void unsetLeftButtonTitle() -
unsetShortLeftButtonTitle
public void unsetShortLeftButtonTitle() -
unsetAlwaysShowLeftButtonTitle
public void unsetAlwaysShowLeftButtonTitle() -
unsetTitle
public void unsetTitle() -
unsetControls
public void unsetControls()
-