Class CmsCategoriesTab
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.CmsCategoriesTab
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.logical.shared.ValueChangeHandler<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
Provides the widget for the categories tab.
It displays the available categories 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.SelectHandlerNested 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
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_tabFields inherited from class org.opencms.ade.galleries.client.ui.A_CmsTab
m_tabTextAccessorFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CmsList<? extends I_CmsListItem> Creates the list which should contain the list items of the tab.voidfillContent(List<org.opencms.gwt.shared.CmsCategoryTreeEntry> categoryRoot, List<String> selected) Fill the content of the categories tab panel.getParamPanels(org.opencms.ade.galleries.shared.CmsGallerySearchBean searchObj) Returns the search parameters to display within the result tab.protected LinkedHashMap<String, String> Returns a list with sort values for this tab.protected CmsCategoriesTabHandlerReturns the tab handler.protected booleanReturns if this tab has quick filter enabled.booleanReturns the isInitOpen.voidOpens the first level in the categories tree.voidsetInitOpen(boolean isInitOpen) Sets the isInitOpen.voiduncheckCategories(List<String> categories) Deselect the categories in the category list.voidupdateContentList(List<org.opencms.gwt.shared.CmsCategoryBean> categoriesBeans, List<String> selectedCategories) Updates the content of the categories list.voidupdateContentTree(List<org.opencms.gwt.shared.CmsCategoryTreeEntry> treeEntries, List<String> selectedCategories) Updates the content of th categories tree.Methods inherited from class org.opencms.ade.galleries.client.ui.A_CmsListTab
addWidgetToFrontOfList, addWidgetToList, addWidgetToOptions, cancelQuickFilterTimer, checkQuickSearchStatus, clearList, createCustomUploadButton, createNewExternalLinkButton, createOptimizeButton, createSelectBox, createSelectButton, createSelectResourceButton, createUploadButtonForTarget, getList, getRequiredHeight, hasQuickSearch, init, onContentChange, onResize, onValueChange, quickSearch, scheduleQuickFilterTimer, searchTreeItem, setSortSelectBoxValue, truncateMethods inherited from class org.opencms.ade.galleries.client.ui.A_CmsTab
clearParams, getTabId, isSelected, onDeselection, onSelection, removeParam, setTabTextAccessorMethods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, 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, toString
-
Constructor Details
-
CmsCategoriesTab
Constructor.- Parameters:
tabHandler- the tab handler
-
-
Method Details
-
fillContent
public void fillContent(List<org.opencms.gwt.shared.CmsCategoryTreeEntry> categoryRoot, List<String> selected) Fill the content of the categories tab panel.- Parameters:
categoryRoot- the category tree root entryselected- the selected categories
-
isInitOpen
Returns the isInitOpen.- Returns:
- the isInitOpen
-
openFirstLevel
Opens the first level in the categories tree. -
setInitOpen
Sets the isInitOpen.- Parameters:
isInitOpen- the isInitOpen to set
-
uncheckCategories
Deselect the categories in the category list.- Parameters:
categories- the categories to deselect
-
updateContentList
public void updateContentList(List<org.opencms.gwt.shared.CmsCategoryBean> categoriesBeans, List<String> selectedCategories) Updates the content of the categories list.- Parameters:
categoriesBeans- the updates list of categories tree item beansselectedCategories- the categories to select in the list by update
-
updateContentTree
public void updateContentTree(List<org.opencms.gwt.shared.CmsCategoryTreeEntry> treeEntries, List<String> selectedCategories) Updates the content of th categories tree.- Parameters:
treeEntries- the root category entryselectedCategories- the categories to select after update
-
createScrollList
Description copied from class:A_CmsListTabCreates the list which should contain the list items of the tab.- Overrides:
createScrollListin classA_CmsListTab- Returns:
- the newly created list widget
- See Also:
-
getSortList
Description copied from class:A_CmsListTabReturns a list with sort values for this tab.- Specified by:
getSortListin classA_CmsListTab- Returns:
- list of sort order value/text pairs
- See Also:
-
getTabHandler
Description copied from class:A_CmsTabReturns the tab handler.- Specified by:
getTabHandlerin classA_CmsTab- Returns:
- the tab handler
- See Also:
-
hasQuickFilter
Description copied from class:A_CmsListTabReturns if this tab has quick filter enabled.- Overrides:
hasQuickFilterin classA_CmsListTab- Returns:
trueif this tab has quick filter enabled- See Also:
-