Package org.opencms.ade.galleries.client
Class CmsVfsTabHandler
java.lang.Object
org.opencms.ade.galleries.client.A_CmsTabHandler
org.opencms.ade.galleries.client.CmsVfsTabHandler
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>,com.google.gwt.event.shared.EventHandler
Handler class for the VFS tree tab.
- Since:
- 8.0.0
-
Field Summary
Fields inherited from class org.opencms.ade.galleries.client.A_CmsTabHandler
m_controller -
Constructor Summary
ConstructorsConstructorDescriptionCmsVfsTabHandler(CmsGalleryController controller) Creates a new VFS tab handler. -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the search parameters of this tab.getSelectPath(org.opencms.ade.galleries.shared.CmsVfsEntryBean vfsEntry) Gets the path which should be set as a value when a VFS entry is selected in the VFS tab.Gets the sort list for the tab.voidgetSubFolders(String path, com.google.gwt.user.client.rpc.AsyncCallback<List<org.opencms.ade.galleries.shared.CmsVfsEntryBean>> callback) Gets the sub-folders of a given folder.booleanReturns if this tab should offer select resource buttons.voidonChangeTreeState(Collection<org.opencms.util.CmsUUID> openItemIds) This method is called when the tree open state is changed.voidonSelectFolder(String folder, boolean selected) This method is called when a folder is selected or deselected in the VFS tab.voidWill be triggered when the tab is selected.voidSorts the list, if present.voidremoveParam(String paramKey) Removes the search parameter with the given key from the search object.protected voidSaves the tree state.protected voidsetSiteRoot(String siteRoot) Sets the site root to use for loading/saving tree state.voidSets the tab which this handler is bound to.Methods inherited from class org.opencms.ade.galleries.client.A_CmsTabHandler
addSearchChangeHandler, getGalleryInfo, getTypeInfo, onClose, onDeselection, selectResource, selectResultTab, setSearchQuery, updateIndex, updateSize
-
Constructor Details
-
CmsVfsTabHandler
Creates a new VFS tab handler.- Parameters:
controller- the gallery controller
-
-
Method Details
-
clearParams
Description copied from class:A_CmsTabHandlerClears the search parameters of this tab.- Specified by:
clearParamsin classA_CmsTabHandler- See Also:
-
getSortList
Gets the sort list for the tab.- Returns:
- the sort list for the tab
-
getSubFolders
public void getSubFolders(String path, com.google.gwt.user.client.rpc.AsyncCallback<List<org.opencms.ade.galleries.shared.CmsVfsEntryBean>> callback) Gets the sub-folders of a given folder.- Parameters:
path- the path of the folder whose subfolders should be retrievedcallback- the callback for processing the subfolders
-
hasSelectResource
Returns if this tab should offer select resource buttons.- Returns:
trueif this tab should offer select resource buttons
-
onChangeTreeState
This method is called when the tree open state is changed.- Parameters:
openItemIds- the structure ids of open tree items
-
onSelectFolder
This method is called when a folder is selected or deselected in the VFS tab.- Parameters:
folder- the folder which is selected or deselectedselected- true if the folder has been selected, false if it has been deselected
-
onSelection
Description copied from class:A_CmsTabHandlerWill be triggered when the tab is selected.- Specified by:
onSelectionin classA_CmsTabHandler- See Also:
-
onSort
Description copied from class:A_CmsTabHandlerSorts the list, if present.- Specified by:
onSortin classA_CmsTabHandler- Parameters:
sortParams- the sort parametersfilter- the filter phrase- See Also:
-
removeParam
Description copied from class:A_CmsTabHandlerRemoves the search parameter with the given key from the search object.- Specified by:
removeParamin classA_CmsTabHandler- Parameters:
paramKey- the parameter key- See Also:
-
setTab
Sets the tab which this handler is bound to.- Parameters:
tab- the VFS tab
-
saveTreeState
Saves the tree state. -
setSiteRoot
Sets the site root to use for loading/saving tree state.- Parameters:
siteRoot- the site root to set
-