Package org.opencms.gwt.client.ui
Class CmsQuickLauncher
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.opencms.gwt.client.ui.CmsMenuButton
org.opencms.gwt.client.ui.CmsQuickLauncher
- All Implemented Interfaces:
com.google.gwt.event.dom.client.HasClickHandlers,com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.IsRenderable,com.google.gwt.user.client.ui.IsWidget,I_CmsToolbarButton
The user info toolbar button.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAbstract class for standard handling of quick launh items.protected classThe font icon HTML.protected static interfaceThe button HTML generator templates.static interfaceThe quick launch handler interface.classButton for an individual entry in the quick launch menu.Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringHtml for the menu button.protected static final StringThe font icon HTML prefix.Fields inherited from class org.opencms.gwt.client.ui.CmsMenuButton
m_button, m_popup, m_resizeRegistrationFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCalled on auto close.protected voidfillItems(Collection<org.opencms.gwt.shared.CmsQuickLaunchData> quickLaunchData) Fills the quick launch menu with buttons corresponding to the given quick launch beans.protected I_CmsToolbarHandlerReturns the container-page handler.booleanisActive()Returns whether this button is active (pushed, not disabled).voidMethod executed when the button is activated.voidExecuted when the tool-bar button is clicked.voidMethod executed when the button is deactivated.voidsetActive(boolean active) Sets the button to active (pushed, not disabled).voidsetHandler(I_CmsToolbarHandler handler) Sets the button handler.voidSets the quick launch handler and makes the button visible.Methods inherited from class org.opencms.gwt.client.ui.CmsMenuButton
addClickHandler, clear, closeMenu, disable, enable, getPopup, hide, hideMenu, isEnabled, isOpen, isOpenRight, onBrowserEvent, openMenu, setButtonDown, setButtonUp, setEnabled, setMenuWidget, setOpenRight, setToolbarMode, showMethods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onDetach, render, render, resolvePotentialElement, setWidgetMethods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsMethods inherited from class com.google.gwt.user.client.ui.UIObject
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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.gwt.event.dom.client.HasClickHandlers
addClickHandlerMethods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEventMethods inherited from interface org.opencms.gwt.client.ui.I_CmsToolbarButton
getTitle, setEnabled
-
Field Details
-
BUTTON_HTML
Html for the menu button. -
FONT_ICON_PREFIX
The font icon HTML prefix.- See Also:
-
-
Constructor Details
-
CmsQuickLauncher
public CmsQuickLauncher()Constructor.
-
-
Method Details
-
isActive
Description copied from interface:I_CmsToolbarButtonReturns whether this button is active (pushed, not disabled).- Specified by:
isActivein interfaceI_CmsToolbarButton- Returns:
trueif the button is active- See Also:
-
onToolbarActivate
Description copied from interface:I_CmsToolbarButtonMethod executed when the button is activated.- Specified by:
onToolbarActivatein interfaceI_CmsToolbarButton- See Also:
-
onToolbarClick
Description copied from interface:I_CmsToolbarButtonExecuted when the tool-bar button is clicked.- Specified by:
onToolbarClickin interfaceI_CmsToolbarButton- See Also:
-
onToolbarDeactivate
Description copied from interface:I_CmsToolbarButtonMethod executed when the button is deactivated.- Specified by:
onToolbarDeactivatein interfaceI_CmsToolbarButton- See Also:
-
setActive
Description copied from interface:I_CmsToolbarButtonSets the button to active (pushed, not disabled).- Specified by:
setActivein interfaceI_CmsToolbarButton- Parameters:
active-trueif active- See Also:
-
setHandler
Sets the button handler.- Parameters:
handler- the button handler
-
setQuicklaunchHandler
Sets the quick launch handler and makes the button visible.- Parameters:
handler- the quick launch handler
-
autoClose
Description copied from class:CmsMenuButtonCalled on auto close.- Overrides:
autoClosein classCmsMenuButton- See Also:
-
fillItems
Fills the quick launch menu with buttons corresponding to the given quick launch beans.- Parameters:
quickLaunchData- the list of quick launch beans
-
getHandler
Returns the container-page handler.- Returns:
- the container-page handler
-