public class HeaderPanel extends SWMMobileWidgetBase implements com.google.gwt.user.client.ui.HasWidgets, IHeaderPanel
| Constructor and Description |
|---|
HeaderPanel()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.google.gwt.user.client.ui.Widget w)
Adds a widget to the header panel (back/forward button)
|
void |
clear() |
String |
getCaption()
Returns the current caption.
|
Button |
getLeftButton()
Returns the left button
|
Button |
getRightButton()
Returns the right button
|
static void |
internationalize(String backCaptionText,
String nextCaptionText)
Sets the default text literals for next and back buttons.
|
Iterator<com.google.gwt.user.client.ui.Widget> |
iterator() |
boolean |
remove(com.google.gwt.user.client.ui.Widget w) |
void |
setCaption(String caption)
Sets the caption.
|
void |
setHasBackButton(boolean hasButton)
Will display the back button.
|
void |
setHasNextButton(boolean hasButton)
Will display the next button.
|
static void |
setHideBackBttonsOnAndroid(boolean hideBackUttonsOnAndroid)
If true - back button will not be visible on android.
|
void |
setLeftButton(String buttonName)
Sets the left button with the given caption.
|
void |
setLeftButtonClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
Click handler for the left button.
|
void |
setLeftButtonTouchHandler(com.google.gwt.event.dom.client.TouchStartHandler handler) |
void |
setLeftWidget(com.google.gwt.user.client.ui.Widget w)
Sets the widget displayed on the left side.
|
void |
setRightButton(Button button)
Will set a pre-constructed button as right button.
|
void |
setRightButton(String buttonName)
Sets the right button with the given caption.
|
void |
setRightButtonClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
Click handler for the right button.
|
void |
setRightButtonTouchHandler(com.google.gwt.event.dom.client.TouchStartHandler handler) |
void |
setRightWidget(com.google.gwt.user.client.ui.Widget w)
Sets the widget displayed on the right side.
|
onInitialLoad, onLoad, onTransitionEnd, setSecondaryStyleclaimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetVisiblepublic void setLeftWidget(com.google.gwt.user.client.ui.Widget w)
w - widget to be displayedpublic void setRightWidget(com.google.gwt.user.client.ui.Widget w)
w - widget to be displayedpublic void add(com.google.gwt.user.client.ui.Widget w)
add in interface com.google.gwt.user.client.ui.HasWidgetsadd in interface IHeaderPanelw - the widgetpublic void setCaption(String caption)
setCaption in interface IHeaderPanelcaption - .public String getCaption()
getCaption in interface IHeaderPanelpublic void setHasBackButton(boolean hasButton)
hasButton - true to displaypublic void setHasNextButton(boolean hasButton)
hasButton - true to displaypublic void setLeftButton(String buttonName)
setLeftButton in interface IHeaderPanelbuttonName - the name of the button (caption)public void setRightButton(String buttonName)
setRightButton in interface IHeaderPanelbuttonName - the name of the button (caption)public void setRightButton(Button button)
setRightButton in interface IHeaderPanelbutton - the preconstructed button.public Button getLeftButton()
getLeftButton in interface IHeaderPanelpublic Button getRightButton()
getRightButton in interface IHeaderPanelpublic void setLeftButtonClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
setLeftButtonClickHandler in interface IHeaderPanelhandler - the handlerpublic void setRightButtonClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
setRightButtonClickHandler in interface IHeaderPanelhandler - the handlerpublic void setLeftButtonTouchHandler(com.google.gwt.event.dom.client.TouchStartHandler handler)
public void setRightButtonTouchHandler(com.google.gwt.event.dom.client.TouchStartHandler handler)
public Iterator<com.google.gwt.user.client.ui.Widget> iterator()
public boolean remove(com.google.gwt.user.client.ui.Widget w)
remove in interface com.google.gwt.user.client.ui.HasWidgetspublic void clear()
clear in interface com.google.gwt.user.client.ui.HasWidgetspublic static void internationalize(String backCaptionText, String nextCaptionText)
backCaptionText - .nextCaptionText - .public static void setHideBackBttonsOnAndroid(boolean hideBackUttonsOnAndroid)
hideBackUttonsOnAndroid - if true back button will not be visible on androidCopyright © 2011–2015 SWM. All rights reserved.