Class CmsFavoriteTab
- 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.ade.containerpage.client.ui.A_CmsClipboardTab
-
- org.opencms.ade.containerpage.client.ui.CmsFavoriteTab
-
- All Implemented Interfaces:
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
public class CmsFavoriteTab extends A_CmsClipboardTab
Content of the tool-bar menu favorite tab.- Since:
- 8.0.0
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.gwt.user.client.ui.FlowPanel
m_buttonEditingPanel
Button panel shown while editing the favorites.protected com.google.gwt.user.client.ui.FlowPanel
m_buttonUsePanel
Button panel shown while using the favorites.protected CmsPushButton
m_cancelButton
The cancel edit button.protected CmsToolbarClipboardMenu
m_clipboard
The clip-board menu.protected CmsPushButton
m_editButton
The edit button.protected CmsList<CmsListItem>
m_listPanel
The list panel holding the favorite elements.protected CmsPushButton
m_saveButton
The save favorites button.protected CmsScrollPanel
m_scrollPanel
The scroll panel.
-
Constructor Summary
Constructors Constructor Description CmsFavoriteTab(CmsToolbarClipboardMenu clipboard)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListItem(CmsListItem item)
Adds an item to the list.void
clearList()
Clears the list.CmsList<CmsListItem>
getList()
Returns the item list.CmsScrollPanel
getScrollPanel()
Returns the scroll panel.java.util.Iterator<com.google.gwt.user.client.ui.Widget>
iterator()
Returns the favorite list item iterator.void
saveFavorites()
Saves the favorites.-
Methods inherited from class org.opencms.ade.containerpage.client.ui.A_CmsClipboardTab
getRequiredHeight, replaceItem
-
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, 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
-
-
-
-
Field Detail
-
m_buttonEditingPanel
@UiField protected com.google.gwt.user.client.ui.FlowPanel m_buttonEditingPanel
Button panel shown while editing the favorites.
-
m_buttonUsePanel
@UiField protected com.google.gwt.user.client.ui.FlowPanel m_buttonUsePanel
Button panel shown while using the favorites.
-
m_cancelButton
@UiField protected CmsPushButton m_cancelButton
The cancel edit button.
-
m_clipboard
protected CmsToolbarClipboardMenu m_clipboard
The clip-board menu.
-
m_editButton
@UiField protected CmsPushButton m_editButton
The edit button.
-
m_listPanel
@UiField(provided=true) protected CmsList<CmsListItem> m_listPanel
The list panel holding the favorite elements.
-
m_saveButton
@UiField protected CmsPushButton m_saveButton
The save favorites button.
-
m_scrollPanel
@UiField protected CmsScrollPanel m_scrollPanel
The scroll panel.
-
-
Constructor Detail
-
CmsFavoriteTab
public CmsFavoriteTab(CmsToolbarClipboardMenu clipboard)
Constructor.- Parameters:
clipboard
- the clip-board menu
-
-
Method Detail
-
addListItem
public void addListItem(CmsListItem item)
Description copied from class:A_CmsClipboardTab
Adds an item to the list.- Overrides:
addListItem
in classA_CmsClipboardTab
- Parameters:
item
- the item to add- See Also:
A_CmsClipboardTab.addListItem(org.opencms.gwt.client.ui.CmsListItem)
-
clearList
public void clearList()
Description copied from class:A_CmsClipboardTab
Clears the list.- Overrides:
clearList
in classA_CmsClipboardTab
- See Also:
A_CmsClipboardTab.clearList()
-
getList
public CmsList<CmsListItem> getList()
Description copied from class:A_CmsClipboardTab
Returns the item list.- Specified by:
getList
in classA_CmsClipboardTab
- Returns:
- the item list
- See Also:
A_CmsClipboardTab.getList()
-
getScrollPanel
public CmsScrollPanel getScrollPanel()
Description copied from class:A_CmsClipboardTab
Returns the scroll panel.- Specified by:
getScrollPanel
in classA_CmsClipboardTab
- Returns:
- the scroll panel
- See Also:
A_CmsClipboardTab.getScrollPanel()
-
iterator
public java.util.Iterator<com.google.gwt.user.client.ui.Widget> iterator()
Returns the favorite list item iterator.- Returns:
- the iterator
-
saveFavorites
public void saveFavorites()
Saves the favorites.
-
-