Class CmsTypesTab
- 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.galleries.client.ui.A_CmsTab
-
- org.opencms.ade.galleries.client.ui.A_CmsListTab
-
- org.opencms.ade.galleries.client.ui.CmsTypesTab
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.logical.shared.ValueChangeHandler<java.lang.String>
,com.google.gwt.event.shared.EventHandler
,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_CmsTruncable
public class CmsTypesTab extends A_CmsListTab
Provides the widget for the types tab.It displays the available types in the given sort order.
- Since:
- 8.0.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opencms.ade.galleries.client.ui.A_CmsListTab
A_CmsListTab.A_SelectionHandler, A_CmsListTab.SelectHandler
-
-
Field Summary
-
Fields inherited from class org.opencms.ade.galleries.client.ui.A_CmsListTab
DIALOG_CSS, m_infoLabel, m_list, m_options, m_quickSearch, m_scrollList, m_searchButton, m_sortSelectBox, m_tab
-
Fields inherited from class org.opencms.ade.galleries.client.ui.A_CmsTab
m_tabTextAccessor
-
-
Constructor Summary
Constructors Constructor Description CmsTypesTab(CmsTypesTabHandler tabHandler, CmsDNDHandler dndHandler, com.google.gwt.user.client.ui.Widget additionalControl)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fillContent(java.util.List<org.opencms.ade.galleries.shared.CmsResourceTypeBean> typeInfos, java.util.List<java.lang.String> selectedTypes)
Fill the content of the types tab panel.java.util.List<CmsSearchParamPanel>
getParamPanels(org.opencms.ade.galleries.shared.CmsGallerySearchBean searchObj)
Returns the search parameters to display within the result tab.protected java.util.LinkedHashMap<java.lang.String,java.lang.String>
getSortList()
Returns a list with sort values for this tab.protected CmsTypesTabHandler
getTabHandler()
Returns the tab handler.protected boolean
hasQuickSearch()
Returns if the tab has the quick search box.protected void
init()
Call after all handlers have been set.protected void
setShowAllTypes(boolean showAllTypes)
Enables/disables full type list mode.void
uncheckTypes(java.util.Collection<java.lang.String> types)
Deselect the types in the types list.void
updateContent(java.util.List<org.opencms.ade.galleries.shared.CmsResourceTypeBean> types, java.util.List<java.lang.String> selectedTypes)
Updates the types list.protected void
updateTypeModeToggle()
Updates the type mode switch.-
Methods inherited from class org.opencms.ade.galleries.client.ui.A_CmsListTab
addWidgetToFrontOfList, addWidgetToList, addWidgetToOptions, cancelQuickFilterTimer, checkQuickSearchStatus, clearList, createCustomUploadButton, createNewExternalLinkButton, createOptimizeButton, createScrollList, createSelectButton, createSelectResourceButton, createUploadButtonForTarget, getList, getRequiredHeight, hasQuickFilter, onContentChange, onResize, onValueChange, quickSearch, scheduleQuickFilterTimer, searchTreeItem, setSortSelectBoxValue, truncate
-
Methods inherited from class org.opencms.ade.galleries.client.ui.A_CmsTab
clearParams, getTabId, isSelected, onDeselection, onSelection, removeParam, setTabTextAccessor
-
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
-
-
-
-
Constructor Detail
-
CmsTypesTab
public CmsTypesTab(CmsTypesTabHandler tabHandler, CmsDNDHandler dndHandler, com.google.gwt.user.client.ui.Widget additionalControl)
Constructor.- Parameters:
tabHandler
- the tab handlerdndHandler
- the drag and drop handleradditionalControl
- an additional custom widget that can be displayed in the top bar
-
-
Method Detail
-
fillContent
public void fillContent(java.util.List<org.opencms.ade.galleries.shared.CmsResourceTypeBean> typeInfos, java.util.List<java.lang.String> selectedTypes)
Fill the content of the types tab panel.- Parameters:
typeInfos
- the type info beansselectedTypes
- the list of types to select
-
getParamPanels
public java.util.List<CmsSearchParamPanel> getParamPanels(org.opencms.ade.galleries.shared.CmsGallerySearchBean searchObj)
Description copied from class:A_CmsTab
Returns the search parameters to display within the result tab.- Specified by:
getParamPanels
in classA_CmsTab
- Parameters:
searchObj
- the current search object- Returns:
- the parameter panel
- See Also:
A_CmsTab.getParamPanels(org.opencms.ade.galleries.shared.CmsGallerySearchBean)
-
uncheckTypes
public void uncheckTypes(java.util.Collection<java.lang.String> types)
Deselect the types in the types list.- Parameters:
types
- the categories to deselect
-
updateContent
public void updateContent(java.util.List<org.opencms.ade.galleries.shared.CmsResourceTypeBean> types, java.util.List<java.lang.String> selectedTypes)
Updates the types list.- Parameters:
types
- the new types listselectedTypes
- the list of types to select
-
getSortList
protected java.util.LinkedHashMap<java.lang.String,java.lang.String> getSortList()
Description copied from class:A_CmsListTab
Returns a list with sort values for this tab.- Specified by:
getSortList
in classA_CmsListTab
- Returns:
- list of sort order value/text pairs
- See Also:
A_CmsListTab.getSortList()
-
getTabHandler
protected CmsTypesTabHandler getTabHandler()
Description copied from class:A_CmsTab
Returns the tab handler.- Specified by:
getTabHandler
in classA_CmsTab
- Returns:
- the tab handler
- See Also:
A_CmsTab.getTabHandler()
-
hasQuickSearch
protected boolean hasQuickSearch()
Description copied from class:A_CmsListTab
Returns if the tab has the quick search box.- Overrides:
hasQuickSearch
in classA_CmsListTab
- Returns:
true
if the tab has the quick search box- See Also:
A_CmsListTab.hasQuickSearch()
-
init
protected void init()
Description copied from class:A_CmsListTab
Call after all handlers have been set.- Overrides:
init
in classA_CmsListTab
- See Also:
A_CmsListTab.init()
-
setShowAllTypes
protected void setShowAllTypes(boolean showAllTypes)
Enables/disables full type list mode.- Parameters:
showAllTypes
- true if all types should be shown
-
updateTypeModeToggle
protected void updateTypeModeToggle()
Updates the type mode switch.
-
-