Class A_CmsToolbarListMenuButton
- 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.ade.sitemap.client.toolbar.A_CmsToolbarListMenuButton
-
- 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_CmsToolbarActivatable
- Direct Known Subclasses:
CmsToolbarClipboardButton
,CmsToolbarNewButton
,CmsToolbarNewGalleryButton
public abstract class A_CmsToolbarListMenuButton extends CmsMenuButton implements I_CmsToolbarActivatable
A menu button with list tabs.- Since:
- 8.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static int
DIALOG_WIDTH
The dialog width.protected boolean
m_initialized
Flag to indicate if the menu tabs have been initialized.protected CmsTabbedPanel<CmsListTab>
m_tabs
The tab panel.static java.lang.String
TM_LITST_MENU
Text metrics key for truncation.-
Fields inherited from class org.opencms.gwt.client.ui.CmsMenuButton
m_button, m_popup, m_resizeRegistration
-
-
Constructor Summary
Constructors Constructor Description A_CmsToolbarListMenuButton(java.lang.String title, java.lang.String iconClass, CmsSitemapToolbar toolbar, CmsSitemapController controller)
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addTab(CmsListTab tab, java.lang.String title)
Adds a new tab to the tab-panel.CmsListTab
createTab(CmsList<? extends I_CmsListItem> list)
Creates a new tab.protected CmsSitemapController
getController()
Returns the controller.protected CmsSitemapToolbar
getToolbar()
Returns the toolbar.protected abstract boolean
initContent()
Initializes the menu tabs.void
onActivation(com.google.gwt.user.client.ui.Widget widget)
Execute on activation.void
updateSize()
Updates the dialog size according to the current tab content.-
Methods inherited from class org.opencms.gwt.client.ui.CmsMenuButton
addClickHandler, autoClose, clear, closeMenu, disable, enable, getPopup, hide, hideMenu, isEnabled, isOpen, isOpenRight, onBrowserEvent, openMenu, setButtonDown, setButtonUp, setEnabled, setMenuWidget, setOpenRight, setToolbarMode, show
-
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onDetach, render, render, resolvePotentialElement, setWidget
-
Methods 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, unsinkEvents
-
Methods 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, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opencms.ade.sitemap.client.toolbar.I_CmsToolbarActivatable
setEnabled
-
-
-
-
Field Detail
-
DIALOG_WIDTH
public static final int DIALOG_WIDTH
The dialog width.- See Also:
- Constant Field Values
-
TM_LITST_MENU
public static final java.lang.String TM_LITST_MENU
Text metrics key for truncation.- See Also:
- Constant Field Values
-
m_initialized
protected boolean m_initialized
Flag to indicate if the menu tabs have been initialized.
-
m_tabs
protected CmsTabbedPanel<CmsListTab> m_tabs
The tab panel.
-
-
Constructor Detail
-
A_CmsToolbarListMenuButton
public A_CmsToolbarListMenuButton(java.lang.String title, java.lang.String iconClass, CmsSitemapToolbar toolbar, CmsSitemapController controller)
Constructor.- Parameters:
title
- the button titleiconClass
- the icon CSS classtoolbar
- the toolbar instancecontroller
- the controller instance
-
-
Method Detail
-
addTab
public void addTab(CmsListTab tab, java.lang.String title)
Adds a new tab to the tab-panel.- Parameters:
tab
- the tabtitle
- the tab title
-
createTab
public CmsListTab createTab(CmsList<? extends I_CmsListItem> list)
Creates a new tab.- Parameters:
list
- list of items- Returns:
- the created tab widget
-
onActivation
public void onActivation(com.google.gwt.user.client.ui.Widget widget)
Description copied from interface:I_CmsToolbarActivatable
Execute on activation.- Specified by:
onActivation
in interfaceI_CmsToolbarActivatable
- Parameters:
widget
- the widget- See Also:
I_CmsToolbarActivatable.onActivation(com.google.gwt.user.client.ui.Widget)
-
updateSize
public void updateSize()
Updates the dialog size according to the current tab content.
-
getController
protected CmsSitemapController getController()
Returns the controller.- Returns:
- the controller
-
getToolbar
protected CmsSitemapToolbar getToolbar()
Returns the toolbar.- Returns:
- the toolbar
-
initContent
protected abstract boolean initContent()
Initializes the menu tabs.- Returns:
- true if the content does not need to be initialized the next time the menu is opened
-
-