Class CmsVfsTab
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.CmsVfsTab
- 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
The tab widget for selecting folders from the VFS tree.
- Since:
- 8.0.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
FieldsFields 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 TypeMethodDescriptionvoidcheckFolders(Set<String> folders) Checks the check boxes for the selected folders.protected voidclear()Clears the contents of the tab and resets the mapping from tree items to VFS beans.protected CmsLazyTreeItemcreateItem(org.opencms.ade.galleries.shared.CmsVfsEntryBean vfsEntry) Helper method for creating a VFS tree item widget from a VFS entry bean.protected CmsList<? extends I_CmsListItem> Creates the list which should contain the list items of the tab.protected A_CmsSelectBox<?> createSelectBox(LinkedHashMap<String, String> options) Creates the sort select box.voidfillInitially(List<org.opencms.ade.galleries.shared.CmsVfsEntryBean> entries) Sets the initial folders in the VFS tab.voidfillInitially(List<org.opencms.ade.galleries.shared.CmsVfsEntryBean> entries, String selectedSiteRoot) Sets the initial folders in the VFS tab.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 CmsVfsTabHandlerReturns the tab handler.protected booleanReturns if this tab has quick filter enabled.protected booleanReturns if files are included.booleanChecks if the tab is initialized.voidonReceiveVfsPreloadData(org.opencms.ade.galleries.shared.CmsVfsEntryBean vfsPreloadData) This method is called when the VFS tree preload data is received.voiduncheckFolders(Collection<String> folders) Un-checks the check boxes for each folder passed in thefoldersparameter.Methods inherited from class org.opencms.ade.galleries.client.ui.A_CmsListTab
addWidgetToFrontOfList, addWidgetToList, addWidgetToOptions, cancelQuickFilterTimer, checkQuickSearchStatus, clearList, createCustomUploadButton, createNewExternalLinkButton, createOptimizeButton, 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
-
Field Details
-
m_tabHandler
The tab handler.
-
-
Constructor Details
-
CmsVfsTab
Constructor.- Parameters:
tabHandler- the tab handlerincludeFiles- the include files flag
-
-
Method Details
-
checkFolders
Checks the check boxes for the selected folders.- Parameters:
folders- the folders for which to check the check boxes
-
fillInitially
Sets the initial folders in the VFS tab.- Parameters:
entries- the root folders to display
-
fillInitially
public void fillInitially(List<org.opencms.ade.galleries.shared.CmsVfsEntryBean> entries, String selectedSiteRoot) Sets the initial folders in the VFS tab.- Parameters:
entries- the root folders to displayselectedSiteRoot- site root that should be selected in the select box
-
isInitialized
Checks if the tab is initialized.- Returns:
- true if the tab is initialized
-
uncheckFolders
Un-checks the check boxes for each folder passed in thefoldersparameter.- Parameters:
folders- the folders for which the check boxes should be unchecked
-
clear
Clears the contents of the tab and resets the mapping from tree items to VFS beans. -
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:
-
createSelectBox
Description copied from class:A_CmsListTabCreates the sort select box.- Overrides:
createSelectBoxin classA_CmsListTab- Parameters:
options- the options for the select box- Returns:
- the sort select box
- 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:
-
isIncludeFiles
Returns if files are included.- Returns:
trueif files are included
-