|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.smartgwt.client.widgets.BaseWidget
com.smartgwt.client.widgets.Canvas
com.smartgwt.client.widgets.layout.Layout
com.smartgwt.client.widgets.layout.HLayout
com.smartgwt.client.widgets.layout.NavigationBar
public class NavigationBar
extends HLayout Navigation control implemented as a horizontal layout showing back and forward controls and a title.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.smartgwt.client.widgets.BaseWidget |
|---|
config, configOnly, id, isElementSet, scClassName |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
NavigationBar()
|
|
NavigationBar(JavaScriptObject jsObj)
|
|
| Method Summary | |
|---|---|
protected JavaScriptObject |
create()
|
String |
getLeftButtonIcon()
Icon for the leftButton |
String |
getLeftButtonTitle()
Title for the leftButton |
static NavigationBar |
getOrCreateRef(JavaScriptObject jsObj)
|
String |
getRightButtonIcon()
Icon for the rightButton |
String |
getRightButtonTitle()
Title for the rightButton |
String |
getTitle()
The title to display centered in this NavigationBar |
static void |
setDefaultProperties(NavigationBar navigationBarProperties)
Class level method to set the default properties of this class. |
void |
setLeftButtonIcon(String leftButtonIcon)
Icon for the leftButton
If this method is called after the component has been drawn/initialized: Setter for leftButtonIcon |
void |
setLeftButtonTitle(String leftButtonTitle)
Title for the leftButton
If this method is called after the component has been drawn/initialized: Setter for leftButtonTitle |
void |
setNavigationClickHandler(NavigationClickHandler handler)
Handler to fire when the user navigates by clicking the back or forward (left / right) buttons. |
void |
setRightButtonIcon(String rightButtonIcon)
Icon for the rightButton
If this method is called after the component has been drawn/initialized: Setter for rightButtonIcon |
void |
setRightButtonTitle(String rightButtonTitle)
Title for the rightButton
If this method is called after the component has been drawn/initialized: Setter for rightButtonTitle |
void |
setShowLeftButton(boolean visible)
Show or hide the leftButton |
void |
setShowRightButton(boolean visible)
Show or hide the rightButton |
void |
setTitle(String title)
The title to display centered in this NavigationBar If this method is called after the component has been drawn/initialized: Updates the title for this navigationBar. |
| Methods inherited from class com.smartgwt.client.widgets.layout.HLayout |
|---|
setDefaultProperties |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getStyleElement, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public NavigationBar()
public NavigationBar(JavaScriptObject jsObj)
| Method Detail |
|---|
public static NavigationBar getOrCreateRef(JavaScriptObject jsObj)
protected JavaScriptObject create()
create in class HLayoutpublic void setLeftButtonIcon(String leftButtonIcon)
Icon for the leftButton
leftButtonIcon
leftButtonIcon - new icon for left button. Default value is nullpublic String getLeftButtonIcon()
Icon for the leftButton
public void setLeftButtonTitle(String leftButtonTitle)
Title for the leftButton
leftButtonTitle
leftButtonTitle - new title for left button. Default value is " "public String getLeftButtonTitle()
Title for the leftButton
public void setRightButtonIcon(String rightButtonIcon)
Icon for the rightButton
rightButtonIcon
rightButtonIcon - new icon for right button. Default value is nullpublic String getRightButtonIcon()
Icon for the rightButton
public void setRightButtonTitle(String rightButtonTitle)
Title for the rightButton
rightButtonTitle
rightButtonTitle - new title for right button. Default value is " "public String getRightButtonTitle()
Title for the rightButton
public void setTitle(String title)
setTitle in class Canvastitle - New title. Default value is nullpublic String getTitle()
getTitle in class Canvaspublic void setShowLeftButton(boolean visible)
leftButton
visible - if true, the button will be shown, otherwise hidden.public void setShowRightButton(boolean visible)
rightButton
visible - if true, the button will be shown, otherwise hidden.public static void setDefaultProperties(NavigationBar navigationBarProperties)
Note: This method is intended for setting default attributes only and will effect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead.
navigationBarProperties - properties that should be used as new defaults when instances of this class are createdpublic void setNavigationClickHandler(NavigationClickHandler handler)
handler -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||