public class CmsVfsTabHandler extends A_CmsTabHandler
m_controller
构造器和说明 |
---|
CmsVfsTabHandler(CmsGalleryController controller)
Creates a new VFS tab handler.
|
限定符和类型 | 方法和说明 |
---|---|
void |
clearParams()
Clears the search parameters of this tab.
|
java.lang.String |
getSelectPath(CmsVfsEntryBean vfsEntry)
Gets the path which should be set as a value when a VFS entry is selected in the VFS tab.
|
java.util.LinkedHashMap<java.lang.String,java.lang.String> |
getSortList()
Gets the sort list for the tab.
|
void |
getSubFolders(java.lang.String path,
com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<CmsVfsEntryBean>> callback)
Gets the sub-folders of a given folder.
|
boolean |
hasSelectResource()
Returns if this tab should offer select resource buttons.
|
void |
onChangeTreeState(java.util.Collection<CmsUUID> openItemIds)
This method is called when the tree open state is changed.
|
void |
onSelectFolder(java.lang.String folder,
boolean selected)
This method is called when a folder is selected or deselected in the VFS tab.
|
void |
onSelection()
Will be triggered when the tab is selected.
|
void |
onSort(java.lang.String sortParams,
java.lang.String filter)
Sorts the list, if present.
|
void |
removeParam(java.lang.String paramKey)
Removes the search parameter with the given key from the search object.
|
protected void |
saveTreeState()
Saves the tree state.
|
protected void |
setSiteRoot(java.lang.String siteRoot)
Sets the site root to use for loading/saving tree state.
|
void |
setTab(CmsVfsTab tab)
Sets the tab which this handler is bound to.
|
addSearchChangeHandler, onClose, onDeselection, selectResource, selectResultTab, setSearchQuery, updateIndex
public CmsVfsTabHandler(CmsGalleryController controller)
controller
- the gallery controllerpublic void clearParams()
A_CmsTabHandler
clearParams
在类中 A_CmsTabHandler
A_CmsTabHandler.clearParams()
public java.lang.String getSelectPath(CmsVfsEntryBean vfsEntry)
vfsEntry
- the VFS entry which has been selectedpublic java.util.LinkedHashMap<java.lang.String,java.lang.String> getSortList()
public void getSubFolders(java.lang.String path, com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<CmsVfsEntryBean>> callback)
path
- the path of the folder whose subfolders should be retrievedcallback
- the callback for processing the subfolderspublic boolean hasSelectResource()
true
if this tab should offer select resource buttonspublic void onChangeTreeState(java.util.Collection<CmsUUID> openItemIds)
openItemIds
- the structure ids of open tree itemspublic void onSelectFolder(java.lang.String folder, boolean selected)
folder
- the folder which is selected or deselectedselected
- true if the folder has been selected, false if it has been deselectedpublic void onSelection()
A_CmsTabHandler
onSelection
在类中 A_CmsTabHandler
A_CmsTabHandler.onSelection()
public void onSort(java.lang.String sortParams, java.lang.String filter)
A_CmsTabHandler
onSort
在类中 A_CmsTabHandler
sortParams
- the sort parametersfilter
- the filter phraseA_CmsTabHandler.onSort(java.lang.String,java.lang.String)
public void removeParam(java.lang.String paramKey)
A_CmsTabHandler
removeParam
在类中 A_CmsTabHandler
paramKey
- the parameter keyA_CmsTabHandler.removeParam(java.lang.String)
public void setTab(CmsVfsTab tab)
tab
- the VFS tabprotected void saveTreeState()
protected void setSiteRoot(java.lang.String siteRoot)
siteRoot
- the site root to set