|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.logicaldoc.web.navigation.NavigationBean
com.logicaldoc.web.document.DocumentNavigation
public class DocumentNavigation
The TreeNavigation class is the backing bean for the documents navigation tree on the left hand side of the application. Each node in the tree is made up of a PageContent which is responsible for the navigation action when a tree node is selected.
When the Tree component binding takes place the tree nodes are initialised and the tree is built. Any addition to the tree navigation must be made to this class.
This bean also controls which panel is shown on the right side of the documents view
Field Summary | |
---|---|
static java.lang.String |
FOLDER_VIEW_TREE
|
protected java.util.List<MenuItem> |
folderItems
|
protected static org.apache.commons.logging.Log |
log
|
Constructor Summary | |
---|---|
DocumentNavigation()
Default constructor of the tree. |
Method Summary | |
---|---|
void |
cancelFolderSelector(javax.faces.event.ActionEvent e)
|
void |
closeFolderSelector(javax.faces.event.ActionEvent e)
|
protected MenuItem |
createMenuItem(java.lang.String label,
Directory dir)
|
protected MenuItem |
createMenuItem(java.lang.String label,
Directory dir,
java.lang.String imageName,
java.lang.String styleClass)
|
protected void |
createMenuItems()
Finds all sub dirs menus accessible by the current |
java.lang.String |
delete()
|
java.lang.String |
deleteDirectory()
|
java.lang.String |
edit()
|
void |
folderSelected(javax.faces.event.ActionEvent e)
|
java.util.List<Directory> |
getBreadcrumb()
|
DirectoryTreeModel |
getDirectoryModel()
|
java.lang.String |
getFolderExportLink()
|
java.util.List<MenuItem> |
getFolderItems()
|
java.lang.String |
getFolderRssLink()
|
java.lang.String |
getFolderView()
|
Directory |
getSelectedDir()
|
com.icesoft.faces.component.tree.Tree |
getTreeComponent()
Gets the tree component binding. |
java.lang.String |
getViewMode()
|
void |
highlightDocument(long docId)
|
java.lang.String |
history()
|
boolean |
isShowFolderSelector()
|
java.lang.String |
moveDirectory()
|
java.lang.String |
newDirectory()
|
void |
nodeClicked()
|
void |
nodeClicked(javax.faces.event.ActionEvent event)
|
void |
onSelectDirectory(javax.faces.event.ActionEvent event)
|
void |
openFolderSelector(javax.faces.event.ActionEvent e)
|
java.lang.String |
openInFolder()
Opens the directory containing the selected search entry |
void |
refresh()
|
void |
refresh(long docId)
|
java.lang.String |
rights()
|
java.lang.String |
searchInFolder()
|
void |
selectDirectory(Directory directory)
|
void |
selectDirectory(long directoryId)
|
void |
setFolderItems(java.util.List<MenuItem> folderItems)
|
void |
setShowFolderSelector(boolean showFolderSelector)
|
void |
setTreeComponent(com.icesoft.faces.component.tree.Tree treeComponent)
Sets the tree component binding. |
void |
setViewMode(java.lang.String viewModeP)
|
java.lang.String |
showDiscussion()
Opens the discussion containing the selected article |
java.lang.String |
showDocuments()
|
Methods inherited from class com.logicaldoc.web.navigation.NavigationBean |
---|
back, getHistorySize, getSelectedPanel, setSelectedPanel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String FOLDER_VIEW_TREE
protected static org.apache.commons.logging.Log log
protected java.util.List<MenuItem> folderItems
Constructor Detail |
---|
public DocumentNavigation()
Method Detail |
---|
public DirectoryTreeModel getDirectoryModel()
public void setTreeComponent(com.icesoft.faces.component.tree.Tree treeComponent)
treeComponent
- tree component to bind topublic com.icesoft.faces.component.tree.Tree getTreeComponent()
public boolean isShowFolderSelector()
public void setShowFolderSelector(boolean showFolderSelector)
public void setViewMode(java.lang.String viewModeP)
public java.lang.String getViewMode()
public java.lang.String getFolderView()
public java.util.List<MenuItem> getFolderItems()
public void setFolderItems(java.util.List<MenuItem> folderItems)
public Directory getSelectedDir()
public java.util.List<Directory> getBreadcrumb()
public void refresh()
protected void createMenuItems()
protected MenuItem createMenuItem(java.lang.String label, Directory dir)
protected MenuItem createMenuItem(java.lang.String label, Directory dir, java.lang.String imageName, java.lang.String styleClass)
public void onSelectDirectory(javax.faces.event.ActionEvent event)
public void selectDirectory(Directory directory)
public void selectDirectory(long directoryId)
public java.lang.String openInFolder()
public void highlightDocument(long docId)
public java.lang.String delete()
public java.lang.String edit()
public java.lang.String rights()
public java.lang.String searchInFolder()
public java.lang.String newDirectory()
public java.lang.String deleteDirectory()
public void openFolderSelector(javax.faces.event.ActionEvent e)
public void closeFolderSelector(javax.faces.event.ActionEvent e)
public void folderSelected(javax.faces.event.ActionEvent e)
public void cancelFolderSelector(javax.faces.event.ActionEvent e)
public java.lang.String showDocuments()
public java.lang.String showDiscussion()
public void refresh(long docId)
public java.lang.String getFolderExportLink()
public java.lang.String getFolderRssLink()
public java.lang.String history()
public void nodeClicked(javax.faces.event.ActionEvent event)
public void nodeClicked()
public java.lang.String moveDirectory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |