public class NaviTreeNode extends NaviTreeItem implements EventChild, NaviNodeAccessor, Comparable<NaviTreeNode>, Identifiable
Modifier and Type | Field and Description |
---|---|
protected org.zkoss.zul.Label |
countLabel
Label holder for document counts.
|
protected NavigationNode |
modelNaviNode
Model node of this view node.
|
static String |
NODE_ATTR_FILEUPLOAD_TARGET
Attribute used to set the target component for fileupload-events.
|
protected org.zkoss.zk.ui.event.EventListener |
onClickListener
The onclick event listener of this node.
|
ALL_EVENTS, ON_ADD_LINK, ON_ADD_LOOKUP, ON_ADD_TO_FAVORITES, ON_AFTER_QUERY, ON_BUTTON, ON_BUTTON_QUERY, ON_CANCEL, ON_CANCEL_AND, ON_CANCEL_EDIT, ON_CHANGE_DOCUMENT_SECURITY, ON_CHANGE_FOLDER_SECURITY, ON_CLEAR, ON_DELETE_SELECTED, ON_DISPLAY_POPUP, ON_DISPLAY_RESULTITEM, ON_DISPLAY_TEMPORARY_DOCUMENT, ON_DOCUMENT_ADDED, ON_DOCUMENT_CHECK, ON_DOCUMENT_FILING, ON_DOCUMENT_LOCKED, ON_DOCUMENT_RELEASE, ON_DOWNLOAD_RESULTITEM, ON_EDIT_CONTENT, ON_EDIT_FOLDER, ON_EDIT_ITEM, ON_EDIT_ITEM_SELECTED, ON_EDIT_LOOKUP, ON_EDIT_SELECTED, ON_EDIT_STRUCTURE, ON_EXPAND_NODE, ON_EXPORT, ON_FAST_ACCESS_DRAG_OVER, ON_FIELD_CHANGE, ON_FILE_ACTION, ON_FILE_PREVIEW, ON_FILE_SEARCH, ON_FORM_CREATED, ON_FORM_RENDER_ERROR, ON_FORWARD, ON_IGNORE, ON_INDEX, ON_INDEX_CLEAR, ON_INDEX_RESULTITEM, ON_ITEM_DOUBLECLICK, ON_LAUNCH_WORKFLOW, ON_LOG, ON_LOGON, ON_MACRO, ON_NAVIGATION, ON_NAVIGATION_FOLDER, ON_NAVIGATION_FORM, ON_NAVIGATION_WEBPART, ON_NEW_ITEM, ON_NEW_SELECTED, ON_OK, ON_OPEN_INDEX_MASK, ON_OPEN_MASK, ON_OPEN_QUERY_MASK, ON_PASSWORD_EXPIRED, ON_PRINT_DOCUMENTS, ON_QUERY, ON_QUERY_FAVORITE, ON_REFRESH, ON_REFRESH_FOLDER, ON_RESET_GUI, ON_REVISION_CREATED, ON_SAVE_AND, ON_SAVE_DOC, ON_SAVE_FOLDER, ON_SCROLL_NODE, ON_SELECT_TREE_ITEM, ON_SELECTDDC, ON_SEND_MAIL_RESULTITEM, ON_START_WORKFLOW, ON_TAB_SELECTED, ON_UNDELETE_SELECTED, ON_UPLOAD_DOCUMENT, ON_UPLOAD_SUCCESS, ON_VARIABLES_AVAILABLE, ON_WF, ON_WF_COMMENT_DIALOG_CANCEL, ON_WF_COMMENT_DIALOG_OK, ON_WFCOMMENTS, ON_WFDELEGATE, ON_WFFORWARD, ON_WFFORWARD1, ON_WFFORWARD2, ON_WFFORWARD3, ON_WFFORWARD4, ON_WFFORWARD5, ON_WFHISTORY, ON_WFPUTBACK, ON_WFREMINDER, ON_WFTAKE, ON_WORKFLOW_ACTION, ON_WORKFLOW_COMMENT
Modifier | Constructor and Description |
---|---|
protected |
NaviTreeNode(NavigationViewImpl naviView,
NavigationTree tree,
org.zkoss.zul.Treechildren parent)
Constructor for root level folders.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(NavigationNode child)
Adds a new child node to the tree.
|
void |
addChildNodes(NavigationNode node)
Adds the already existing model children of the given navigation model node to the associated
view tree node.
|
protected void |
addContextMenu()
Add context menu.
|
protected void |
addCreateCollectionMenuItem() |
protected boolean |
addCreateFolderMenuItem()
Add menu item for creating folder.
|
protected boolean |
addDeleteFolderMenuItem()
Add delete folder menu item.
|
protected void |
addEditFolderPropertiesMenuItem()
Adds the menu item to edit the folder's properties.
|
protected void |
addEmptyMenuItem()
Empty menu item.
|
protected boolean |
addFastAccessMenuItem()
Fast access context menu.
|
protected boolean |
addFolderSecurityMenuItem()
Add folder security menu item.
|
protected void |
addMainContextMenu()
Add main context menu.
|
protected void |
addMenuItem(org.zkoss.zul.Menuitem item,
boolean withSeparator)
Adds a new item to the context menu.
|
protected void |
addOnClickEventListener()
Adds the event listener for onClick event.
|
protected void |
addOnDoubleClickEventListener()
Add double click event listener.
|
protected void |
addOnOpenEventListener()
Add on open event listener, should load children on demand.
|
protected void |
addOnUploadEventListener()
Add EventListener to listen to upload events.
|
protected void |
addRefreshMenuItem()
Adds refresh menu item.
|
protected boolean |
addRenameFolderMenuItem()
Add menu item for delete folder.
|
protected void |
addSearchFolderMenuItem()
Adds the menu item to search for folders with a mask.
|
protected void |
addSeparator()
Add separator.
|
protected void |
addTreeRow(boolean selectionMode)
Add tree row and register event listeners.
|
protected boolean |
addUploadMenuItem()
Add folder security menu item.
|
protected void |
clearChildren()
Clear children.
|
int |
compareTo(NaviTreeNode o) |
protected void |
copyFolder(NaviTreeNode folderToCopy,
NaviTreeNode target)
Copies a folder.
|
protected List<org.zkoss.zul.Treecell> |
createCells()
Creates the ZK
Treecell s to display this tree node. |
protected void |
createTreerow()
Creates a new treerow.
|
String |
generateUUID() |
protected NodeContextMenuCreator |
getContextCreator() |
protected String |
getCountValue()
Builds and returns the value of this nodes count label.
|
protected String |
getDragableIdentifiers() |
protected String |
getDroppableIdentifiers()
Returns a comma separated string with the identifiers of items that can be dropped on this
item or 'false'/'true' if no/all items can be dropped on this item.
|
protected EventChildHandler |
getEventProvider()
Returns the event provider.
|
Set<org.zkoss.zk.ui.Component> |
getEventtarget(String eventName)
Reads the event target for the given event name, if set or the root element.
|
FolderClass |
getFolderClass()
Reads the folder class.
|
String |
getMaskDDC()
Reads the mask ddc name.
|
protected org.zkoss.zul.Menupopup |
getMenuPopup() |
NavigationNode |
getModelNaviNode() |
protected NavigationPresenter |
getNavigationPresenter() |
protected NavigationViewImpl |
getNavigationView() |
protected boolean |
getNextLevelFolders()
Initiates lazy loading of next level folders.
|
NaviNodeAccessor |
getParentNaviNode()
Returns the parent node (in case of root node
null ) of this node. |
protected org.zkoss.zul.Treecell |
getTreeCell() |
boolean |
hideChildren()
Checks if this node will hide it's children or not.
|
boolean |
isPrivate() |
boolean |
isWorkflow() |
protected void |
moveFolder(NaviTreeNode sourceNode)
Moves a folder to another.
|
void |
onPageDetached(org.zkoss.zk.ui.Page page) |
protected void |
openNode()
Expands the node.
|
void |
postErrorLogEvent(LogMessage message)
Posts an error log event.
|
void |
postInfoLogEvent(LogMessage message)
Posts an info log event.
|
void |
postLogonEvent(LogonEvent.LogonResult result,
String username)
Posts a logon event.
|
protected void |
raiseTabClear()
Raise tab clear.
|
protected void |
refreshCurrentNode()
Refreshes the current node only.
|
protected void |
refreshCurrentNode(boolean includeChildren)
Refreshes the current node.
|
protected void |
refreshParent()
Refreshes the parent view of the current node.
|
protected void |
registerChildrensColumns()
Registers the columns used by the child nodes at the column manager.
|
void |
remove(NavigationNode node)
Removes the associated child node.
|
void |
render()
Renders the children of this node based on the given model node.
|
protected void |
renderChildNodes(List<NavigationNode> nodes) |
void |
setEventtarget(org.zkoss.zk.ui.Component comp,
String eventName)
Set the event target.
|
protected void |
setTreecells(List<org.zkoss.zul.Treecell> newCells) |
protected boolean |
shouldCreateWebpartFolderMenuItem()
Determines if WebpartFolderMenuItem should be created.
|
protected void |
unregisterChildrensColumns()
Unregisters the columns used by the child nodes at the column manager.
|
void |
updateCounter(com.saperion.wf.BoxCount count)
Updates the count label of this node.
|
void |
updateCounter(com.saperion.folder.FolderUpdateInfo folderUpdateInfo)
Updates the count label of this node.
|
getDisplayName, setDisplayName
beforeChildAdded, beforeParentChanged, clone, getImage, getIndex, getLabel, getLevel, getParentItem, getParentItemApi, getSrc, getTree, getTreeApi, getTreechildren, getTreechildrenApi, getTreerow, getTreerowApi, getValue, getVisibleItemCount, indexOf, insertBefore, isCheckable, isContainer, isDisabled, isEmpty, isLoaded, isOpen, isSelected, onChildAdded, onChildRemoved, redrawChildren, renderProperties, service, setCheckable, setDisabled, setImage, setLabel, setOpen, setParent, setSelected, setSrc, setValue, setVisible, unload
getContext, getCtrlKeys, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip
focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeightDirectly, setHflex, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTooltiptext, setTop, setTopDirectly, setVflex, setWidth, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly
addAnnotation, addAnnotation, addClientEvent, addEventHandler, addEventListener, addForward, addForward, addForward, addForward, addMoved, addScopeListener, addSharedAnnotationMap, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, containsVariable, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableClientUpdate, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getChildren, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getSpaceOwner, getStubonly, getUuid, getVariable, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, newChildren, newExtraCtrl, onPageAttached, onWrongValue, redraw, removeAttribute, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, removeScopeListener, render, render, render, renderIdSpace, response, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setStubonly, setVariable, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, unsetVariable, updateByClient, willPassivate, willPassivate, willSerialize, willSerialize
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTreechildren
addEventListener, addForward, addForward, addForward, addForward, appendChild, applyProperties, clone, containsVariable, detach, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getChildren, getDefinition, getDesktop, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getSpaceOwner, getStubonly, getUuid, getVariable, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, setAttribute, setAttribute, setAuService, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setVariable, setVisible, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, unsetVariable
addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute
getContext, getCtrlKeys, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip
focus, getHeight, getLeft, getRenderdefer, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZclass, getZindex, getZIndex, setDraggable, setDroppable, setFocus, setHeight, setLeft, setRenderdefer, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZclass, setZindex, setZIndex
public static final String NODE_ATTR_FILEUPLOAD_TARGET
protected NavigationNode modelNaviNode
protected org.zkoss.zul.Label countLabel
protected transient org.zkoss.zk.ui.event.EventListener onClickListener
protected NaviTreeNode(NavigationViewImpl naviView, NavigationTree tree, org.zkoss.zul.Treechildren parent)
naviView
- navigation viewtree
- model navigation treeparent
- parent tree elementprotected final void addTreeRow(boolean selectionMode)
selectionMode
- selection mode enabled or disabledprotected org.zkoss.zul.Treecell getTreeCell()
protected void setTreecells(List<org.zkoss.zul.Treecell> newCells)
newCells
- New cellsprotected void clearChildren()
protected void createTreerow()
protected List<org.zkoss.zul.Treecell> createCells()
Treecell
s to display this tree node.Treecell
s.protected String getCountValue()
public void updateCounter(com.saperion.folder.FolderUpdateInfo folderUpdateInfo)
folderUpdateInfo
- The FolderUpdateInfo describing the update values.public void updateCounter(com.saperion.wf.BoxCount count)
count
- count for a workflow inboxprotected String getDroppableIdentifiers()
protected String getDragableIdentifiers()
protected void addOnDoubleClickEventListener()
protected void addOnUploadEventListener()
protected boolean getNextLevelFolders() throws AuthenticationException, NgcUiException
AuthenticationException
- authentication exceptionNgcUiException
- exception to be handled by viewprotected void addOnOpenEventListener()
protected void openNode()
protected void addContextMenu()
protected void addMainContextMenu()
protected boolean shouldCreateWebpartFolderMenuItem()
protected void addCreateCollectionMenuItem()
protected void addMenuItem(org.zkoss.zul.Menuitem item, boolean withSeparator)
item
- the new itemwithSeparator
- adds a separator before the item if necessaryprotected void addSeparator()
protected void addRefreshMenuItem()
protected void addEmptyMenuItem()
protected boolean addFastAccessMenuItem()
protected NavigationPresenter getNavigationPresenter()
protected boolean addCreateFolderMenuItem()
protected boolean addRenameFolderMenuItem()
protected void addEditFolderPropertiesMenuItem()
protected void addSearchFolderMenuItem()
protected void addOnClickEventListener()
protected void raiseTabClear()
protected boolean addDeleteFolderMenuItem()
protected boolean addFolderSecurityMenuItem()
protected boolean addUploadMenuItem()
public void render()
render
in interface NaviNodeAccessor
protected org.zkoss.zul.Menupopup getMenuPopup()
protected void renderChildNodes(List<NavigationNode> nodes) throws NgcUiException, AuthenticationException
nodes
- NodesAuthenticationException
- authentication exceptionNgcUiException
- exception to be handled by viewprotected NavigationViewImpl getNavigationView()
public NavigationNode getModelNaviNode()
getModelNaviNode
in interface NaviNodeAccessor
public void addChildNodes(NavigationNode node)
addChildNodes
in interface NaviNodeAccessor
node
- navigation model node#addChildNodes(com.saperion.ngc.model.navigation.intf.NavigationNode)
public void remove(NavigationNode node)
remove
in interface NaviNodeAccessor
node
- navigation model node#remove(com.saperion.ngc.model.navigation.intf.NavigationNode)
public int compareTo(NaviTreeNode o)
compareTo
in interface Comparable<NaviTreeNode>
Comparable.compareTo(java.lang.Object)
public void addChild(NavigationNode child)
addChild
in interface NaviNodeAccessor
child
- child node#addChild(com.saperion.ngc.model.navigation.intf.NavigationNode)
public Set<org.zkoss.zk.ui.Component> getEventtarget(String eventName)
getEventtarget
in interface EventChild
eventName
- Event name or null for main targetEventChildHandlerImpl.getEventtarget(java.lang.String)
public void setEventtarget(org.zkoss.zk.ui.Component comp, String eventName)
setEventtarget
in interface EventChild
comp
- Event targeteventName
- Event name or null for main targetEventChildHandlerImpl.setEventtarget(org.zkoss.zk.ui.Component,
java.lang.String)
public void postErrorLogEvent(LogMessage message)
message
- error messageLogEventChildHandler.postErrorLogEvent(com.saperion.ngc.service.LogMessage)
public void postInfoLogEvent(LogMessage message)
message
- info messageLogEventChildHandler.postInfoLogEvent(com.saperion.ngc.service.LogMessage)
public void postLogonEvent(LogonEvent.LogonResult result, String username)
result
- logon resultusername
- usernameEventChildHandler.postLogonEvent(com.saperion.ngc.events.LogonEvent.LogonResult,
java.lang.String)
protected EventChildHandler getEventProvider()
protected void moveFolder(NaviTreeNode sourceNode) throws NgcUiException
sourceNode
- the node which has to be included before this node.NgcUiException
- exception to be handled by viewprotected void copyFolder(NaviTreeNode folderToCopy, NaviTreeNode target) throws AuthenticationException, NgcUiException
folderToCopy
- folder to copytarget
- target folderAuthenticationException
- authentication exceptionNgcUiException
- exception to be handled by viewpublic NaviNodeAccessor getParentNaviNode()
null
) of this node.getParentNaviNode
in interface NaviNodeAccessor
public boolean isPrivate()
isPrivate
in interface NaviNodeAccessor
NaviNodeAccessor.isPrivate()
public boolean isWorkflow()
isWorkflow
in interface NaviNodeAccessor
NaviNodeAccessor.isWorkflow()
protected void refreshParent() throws AuthenticationException, NgcUiException
NgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredprotected void refreshCurrentNode(boolean includeChildren) throws AuthenticationException, NgcUiException
includeChildren
- Shall the children of the current node be updated, too?AuthenticationException
- AuthentificationExceptionNgcUiException
- NgcUiExceptionprotected void refreshCurrentNode() throws AuthenticationException, NgcUiException
AuthenticationException
- AuthentificationExceptionNgcUiException
- NgcUiExceptionpublic String getMaskDDC()
protected void unregisterChildrensColumns()
protected void registerChildrensColumns()
public FolderClass getFolderClass()
getFolderClass
in interface NaviNodeAccessor
protected NodeContextMenuCreator getContextCreator()
public String generateUUID()
generateUUID
in interface Identifiable
public boolean hideChildren()
public void onPageDetached(org.zkoss.zk.ui.Page page)
onPageDetached
in interface org.zkoss.zk.ui.sys.ComponentCtrl
onPageDetached
in class org.zkoss.zk.ui.AbstractComponent
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.