public class CmsGalleriesTab extends A_CmsListTab
It displays the available gallery folders in the given order.
限定符和类型 | 类和说明 |
---|---|
protected class |
CmsGalleriesTab.ListItemGenerator
A class which generates list items incrementally to fill the galleries tab.
|
protected class |
CmsGalleriesTab.MoreItemsCommand
Command for adding more list items to the list of publish items.
|
protected class |
CmsGalleriesTab.TreeItemGenerator
A class which generates tree items incrementally to fill the galleries tab.
|
A_CmsListTab.A_SelectionHandler, A_CmsListTab.SelectHandler
限定符和类型 | 字段和说明 |
---|---|
protected static int |
LOAD_BATCH_SIZE
The batch size for adding new elements to the tab.
|
protected java.util.Iterator<CmsTreeItem> |
m_itemIterator
An iterator which produces new list items which should be added to the tab.
|
protected java.util.List<java.lang.String> |
m_selectedGalleries
List of selected galleries.
|
DIALOG_CSS, m_infoLabel, m_list, m_options, m_quickSearch, m_scrollList, m_searchButton, m_sortSelectBox, m_tab
m_tabTextAccessor
构造器和说明 |
---|
CmsGalleriesTab(CmsGalleriesTabHandler tabHandler)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
addChildren(CmsTreeItem parent,
java.util.List<CmsGalleryTreeEntry> children,
java.util.List<java.lang.String> selectedGalleries)
Adds children to the gallery tree and select the galleries.
|
protected CmsTreeItem |
createTreeItem(CmsGalleryFolderBean galleryInfo,
java.util.List<java.lang.String> selectedGalleries,
boolean forTree)
Creates a tree item widget used in list and tree view of this tab.
|
void |
fillContent(java.util.List<CmsGalleryFolderBean> galleryInfos,
java.util.List<java.lang.String> selectedGalleries)
Fill the content of the galleries 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 CmsGalleriesTabHandler |
getTabHandler()
Returns the tab handler.
|
protected boolean |
hasQuickFilter()
Returns if this tab has quick filter enabled.
|
boolean |
isLoading()
Returns the value of the "loading" flag, which indicates whether new elements are currently being added into the galleries tab.
|
protected void |
loadMoreItems()
Adds more gallery list items to display in the tab, if available.
|
void |
setLoading(boolean loading)
Sets the "loading" flag.
|
void |
uncheckGalleries(java.util.List<java.lang.String> galleries)
De-selects the galleries in the galleries list.
|
void |
updateListContent(java.util.List<CmsGalleryFolderBean> galleries,
java.util.List<java.lang.String> selectedGalleries)
Update the galleries list.
|
void |
updateTreeContent(java.util.List<CmsGalleryTreeEntry> galleryTreeEntries,
java.util.List<java.lang.String> selectedGalleries)
Update the galleries 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
protected static final int LOAD_BATCH_SIZE
protected java.util.Iterator<CmsTreeItem> m_itemIterator
protected java.util.List<java.lang.String> m_selectedGalleries
public CmsGalleriesTab(CmsGalleriesTabHandler tabHandler)
tabHandler
- the tab handlerpublic void fillContent(java.util.List<CmsGalleryFolderBean> galleryInfos, java.util.List<java.lang.String> selectedGalleries)
galleryInfos
- the gallery info beansselectedGalleries
- the list of galleries to selectpublic 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 isLoading()
public void setLoading(boolean loading)
loading
- the new value of the loading flagpublic void uncheckGalleries(java.util.List<java.lang.String> galleries)
galleries
- the galleries to deselectpublic void updateListContent(java.util.List<CmsGalleryFolderBean> galleries, java.util.List<java.lang.String> selectedGalleries)
galleries
- the new gallery listselectedGalleries
- the list of galleries to selectpublic void updateTreeContent(java.util.List<CmsGalleryTreeEntry> galleryTreeEntries, java.util.List<java.lang.String> selectedGalleries)
galleryTreeEntries
- the new gallery tree listselectedGalleries
- the list of galleries to selectprotected void addChildren(CmsTreeItem parent, java.util.List<CmsGalleryTreeEntry> children, java.util.List<java.lang.String> selectedGalleries)
parent
- the parent itemchildren
- the list of childrenselectedGalleries
- the list of galleries to selectprotected CmsTreeItem createTreeItem(CmsGalleryFolderBean galleryInfo, java.util.List<java.lang.String> selectedGalleries, boolean forTree)
galleryInfo
- the gallery folder beanselectedGalleries
- the selected galleriesforTree
- true
if the item is used within tree viewprotected java.util.LinkedHashMap<java.lang.String,java.lang.String> getSortList()
A_CmsListTab
getSortList
在类中 A_CmsListTab
A_CmsListTab.getSortList()
protected CmsGalleriesTabHandler 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()
protected void loadMoreItems()