public class CmsCategoriesTab extends A_CmsListTab
It displays the available categories in the given sort order.
A_CmsListTab.A_SelectionHandler, A_CmsListTab.SelectHandler
DIALOG_CSS, m_infoLabel, m_list, m_options, m_quickSearch, m_scrollList, m_searchButton, m_sortSelectBox, m_tab
m_tabTextAccessor
构造器和说明 |
---|
CmsCategoriesTab(CmsCategoriesTabHandler tabHandler)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
void |
fillContent(java.util.List<CmsCategoryTreeEntry> categoryRoot)
Fill the content of the categories tab panel.
|
java.util.List<CmsSearchParamPanel> |
getParamPanels(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 CmsCategoriesTabHandler |
getTabHandler()
Returns the tab handler.
|
protected boolean |
hasQuickFilter()
Returns if this tab has quick filter enabled.
|
boolean |
isInitOpen()
Returns the isInitOpen.
|
void |
openFirstLevel()
Opens the first level in the categories tree.
|
void |
setInitOpen(boolean isInitOpen)
Sets the isInitOpen.
|
void |
uncheckCategories(java.util.List<java.lang.String> categories)
Deselect the categories in the category list.
|
void |
updateContentList(java.util.List<CmsCategoryBean> categoriesBeans,
java.util.List<java.lang.String> selectedCategories)
Updates the content of the categories list.
|
void |
updateContentTree(java.util.List<CmsCategoryTreeEntry> treeEntries,
java.util.List<java.lang.String> selectedCategories)
Updates the content of th categories tree.
|
addWidgetToFrontOfList, addWidgetToList, addWidgetToOptions, cancelQuickFilterTimer, checkQuickSearchStatus, clearList, createScrollList, createSelectButton, createSelectResourceButton, createUploadButtonForTarget, getList, hasQuickSearch, init, onContentChange, onValueChange, quickSearch, scheduleQuickFilterTimer, searchTreeItem, setSortSelectBoxValue
clearParams, getTabId, isSelected, onDeselection, onSelection, removeParam, setTabTextAccessor
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
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, unsinkEvents
public CmsCategoriesTab(CmsCategoriesTabHandler tabHandler)
tabHandler
- the tab handlerpublic void fillContent(java.util.List<CmsCategoryTreeEntry> categoryRoot)
categoryRoot
- the category tree root entrypublic java.util.List<CmsSearchParamPanel> getParamPanels(CmsGallerySearchBean searchObj)
A_CmsTab
getParamPanels
在类中 A_CmsTab
searchObj
- the current search objectA_CmsTab.getParamPanels(org.opencms.ade.galleries.shared.CmsGallerySearchBean)
public boolean isInitOpen()
public void openFirstLevel()
public void setInitOpen(boolean isInitOpen)
isInitOpen
- the isInitOpen to setpublic void uncheckCategories(java.util.List<java.lang.String> categories)
categories
- the categories to deselectpublic void updateContentList(java.util.List<CmsCategoryBean> categoriesBeans, java.util.List<java.lang.String> selectedCategories)
categoriesBeans
- the updates list of categories tree item beansselectedCategories
- the categories to select in the list by updatepublic void updateContentTree(java.util.List<CmsCategoryTreeEntry> treeEntries, java.util.List<java.lang.String> selectedCategories)
treeEntries
- the root category entryselectedCategories
- the categories to select after updateprotected java.util.LinkedHashMap<java.lang.String,java.lang.String> getSortList()
A_CmsListTab
getSortList
在类中 A_CmsListTab
A_CmsListTab.getSortList()
protected CmsCategoriesTabHandler getTabHandler()
A_CmsTab
getTabHandler
在类中 A_CmsTab
A_CmsTab.getTabHandler()
protected boolean hasQuickFilter()
A_CmsListTab
hasQuickFilter
在类中 A_CmsListTab
true
if this tab has quick filter enabledA_CmsListTab.hasQuickFilter()