public class CmsToolbar
extends com.google.gwt.user.client.ui.Composite
限定符和类型 | 类和说明 |
---|---|
protected static interface |
CmsToolbar.I_CmsToolbarUiBinder |
限定符和类型 | 字段和说明 |
---|---|
protected com.google.gwt.user.client.ui.FlowPanel |
m_buttonPanelLeft
Holds left-side buttons associated with the tool-bar.
|
protected com.google.gwt.user.client.ui.FlowPanel |
m_buttonPanelRight
Holds right-side buttons associated with the tool-bar.
|
构造器和说明 |
---|
CmsToolbar()
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
void |
addLeft(com.google.gwt.user.client.ui.Widget widget)
Adds a widget to the left button panel.
|
void |
addRight(com.google.gwt.user.client.ui.Widget widget)
Adds a widget to the left button panel.
|
java.util.List<com.google.gwt.user.client.ui.Widget> |
getAll()
Returns all
Widget added to the tool-bar in order of addition first left than right. |
static void |
showToolbar(CmsToolbar toolbar,
boolean show,
CmsStyleVariable toolbarVisibility)
Helper method for setting toolbar visibility.
|
static void |
showToolbar(CmsToolbar toolbar,
boolean show,
CmsStyleVariable toolbarVisibility,
java.lang.String showClass)
Helper method for setting toolbar visibility.
|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, 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, toString, unsinkEvents
@UiField protected com.google.gwt.user.client.ui.FlowPanel m_buttonPanelLeft
@UiField protected com.google.gwt.user.client.ui.FlowPanel m_buttonPanelRight
public static void showToolbar(CmsToolbar toolbar, boolean show, CmsStyleVariable toolbarVisibility)
toolbar
- the toolbarshow
- true if the toolbar should be showntoolbarVisibility
- the style variable controlling the toolbar visibilitypublic static void showToolbar(CmsToolbar toolbar, boolean show, CmsStyleVariable toolbarVisibility, java.lang.String showClass)
toolbar
- the toolbarshow
- true if the toolbar should be showntoolbarVisibility
- the style variable controlling the toolbar visibilityshowClass
- the class which should be used for showing the toolbarpublic void addLeft(com.google.gwt.user.client.ui.Widget widget)
widget
- the widget to addpublic void addRight(com.google.gwt.user.client.ui.Widget widget)
widget
- the widget to addpublic java.util.List<com.google.gwt.user.client.ui.Widget> getAll()
Widget
added to the tool-bar in order of addition first left than right.