Package com.saperion.ngc.navigation
Class WorkflowFormNaviTreeNode
java.lang.Object
org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zul.Treeitem
com.saperion.ngc.navigation.NaviTreeItem
com.saperion.ngc.navigation.NaviTreeNode
com.saperion.ngc.navigation.WorkflowFormNaviTreeNode
- All Implemented Interfaces:
EventChild
,Identifiable
,NaviNodeAccessor
,Serializable
,Cloneable
,Comparable<NaviTreeNode>
,org.zkoss.zk.ui.Component
,org.zkoss.zk.ui.ext.Disable
,org.zkoss.zk.ui.ext.Scope
,org.zkoss.zk.ui.sys.ComponentCtrl
- Author:
- rbo
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl
Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.AbstractComponent.Children
-
Field Summary
Fields inherited from class com.saperion.ngc.navigation.NaviTreeNode
countLabel, modelNaviNode, NODE_ATTR_FILEUPLOAD_TARGET, onClickListener
Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent
_zclass
Fields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
Fields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl
AFTER_CHILD_ADDED, AFTER_CHILD_REMOVED, AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED, CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE
Fields inherited from interface com.saperion.ngc.events.EventChild
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_PROLONG_RETENTION, ON_DOCUMENT_REDUCE_DISPOSITION, 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_EXPORT, ON_EXTERNAL_STORAGE_UPLOAD, ON_EXTERNAL_STORAGE_UPLOAD_STATUS, 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_ONEDRIVE_LOGIN, 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_SET_LITIGATION_HOLD, ON_SHAREBASE_DOCUMENT_CHECK, ON_SHAREBASE_LOGIN, ON_START_WORKFLOW, ON_TAB_SELECTED, ON_UNDELETE_SELECTED, ON_UPLOAD_DOCUMENT, ON_UPLOAD_EXTERNAL_STORAGE_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, ON_WORKFLOW_DISPLAY_COMMENT
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Add main context menu.protected void
Adds the event listener for onClick event.protected String
Builds the value of the count label.protected String
protected String
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 boolean
Initiates lazy loading of next level folders.boolean
boolean
protected void
Raise tab clear.protected void
refreshCurrentNode
(boolean includeChildren) Refreshes the current node.void
updateCounter
(com.saperion.folder.FolderUpdateInfo folderUpdateInfo) Updates the count label of this node.void
updateCounter
(com.saperion.wf.BoxCount count) Updates the count label of this node.Methods inherited from class com.saperion.ngc.navigation.NaviTreeNode
addChild, addChildNodes, addContextMenu, addCreateCollectionMenuItem, addCreateFolderMenuItem, addDeleteFolderMenuItem, addEditFolderPropertiesMenuItem, addEmptyMenuItem, addFastAccessMenuItem, addFolderSecurityMenuItem, addMenuItem, addOnDoubleClickEventListener, addOnOpenEventListener, addRefreshMenuItem, addRenameFolderMenuItem, addSearchFolderMenuItem, addSeparator, addTreeRow, addUploadMenuItem, clearChildren, compareTo, copyFolder, createCells, createTreerow, generateUUID, getContextCreator, getDefaultMenuRights, getEventProvider, getEventtarget, getFolderClass, getMaskDDC, getMenuPopup, getModelNaviNode, getNavigationPresenter, getNavigationView, getParentNaviNode, getTreeCell, hideChildren, moveFolder, onPageDetached, openNode, postErrorLogEvent, postInfoLogEvent, postLogonEvent, refreshCurrentNode, refreshParent, registerChildrensColumns, remove, render, renderChildNodes, setEventtarget, setTreecells, shouldCreateWebpartFolderMenuItem, unregisterChildrensColumns
Methods inherited from class com.saperion.ngc.navigation.NaviTreeItem
getDisplayName, setDisplayName
Methods inherited from class org.zkoss.zul.Treeitem
beforeChildAdded, beforeParentChanged, clone, getImage, getIndex, getLabel, getLevel, getParentItem, getSrc, getTree, getTreechildren, getTreerow, getValue, getVisibleItemCount, indexOf, insertBefore, isCheckable, isContainer, isDisabled, isEmpty, isLoaded, isOpen, isRendered, isSelectable, isSelected, onChildAdded, onChildRemoved, redrawChildren, renderProperties, service, setCheckable, setDisabled, setHflex, setImage, setLabel, setOpen, setParent, setSelectable, setSelected, setSrc, setStubonly, setStubonly, setValue, setVisible, setWidth, unload
Methods inherited from class org.zkoss.zul.impl.XulElement
getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
addSclass, evalCSSFlex, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, removeSclass, removeSclass, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, invalidate, invalidatePartial, isChildable, isInitialized, isInvalidated, isListenerAvailable, isVisible, onPageAttached, onWrongValue, query, queryAll, redraw, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setSubBindingAnnotationCount, setTemplate, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.zkoss.zk.ui.Component
addEventListener, addEventListener, addForward, addForward, addForward, addForward, appendChild, applyProperties, clone, detach, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getChildren, getClientAttribute, getClientDataAttribute, getDefinition, getDesktop, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getShadowVariable, getShadowVariable, getSpaceOwner, getStubonly, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, query, queryAll, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setTemplate, setVisible, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride
Methods inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl
invalidatePartial
Methods inherited from interface com.saperion.ngc.model.navigation.intf.NaviNodeAccessor
getTreechildren
Methods inherited from interface org.zkoss.zk.ui.ext.Scope
addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute
-
Method Details
-
getCountValue
Builds the value of the count label.- Overrides:
getCountValue
in classNaviTreeNode
- Returns:
- the value of the count label.
-
updateCounter
public void updateCounter(com.saperion.folder.FolderUpdateInfo folderUpdateInfo) Updates the count label of this node.- Overrides:
updateCounter
in classNaviTreeNode
- Parameters:
folderUpdateInfo
- The FolderUpdateInfo describing the update values.
-
updateCounter
public void updateCounter(com.saperion.wf.BoxCount count) Description copied from class:NaviTreeNode
Updates the count label of this node.- Overrides:
updateCounter
in classNaviTreeNode
- Parameters:
count
- count for a workflow inbox
-
addMainContextMenu
protected void addMainContextMenu()Add main context menu.- Overrides:
addMainContextMenu
in classNaviTreeNode
- See Also:
-
refreshCurrentNode
protected void refreshCurrentNode(boolean includeChildren) throws AuthenticationException, NgcUiException Description copied from class:NaviTreeNode
Refreshes the current node. Optional boolean parameter to update children laying under the current node.- Overrides:
refreshCurrentNode
in classNaviTreeNode
- Parameters:
includeChildren
- Shall the children of the current node be updated, too?- Throws:
AuthenticationException
- AuthentificationExceptionNgcUiException
- NgcUiException
-
addOnClickEventListener
protected void addOnClickEventListener()Adds the event listener for onClick event.- Overrides:
addOnClickEventListener
in classNaviTreeNode
-
raiseTabClear
protected void raiseTabClear()Raise tab clear.- Overrides:
raiseTabClear
in classNaviTreeNode
-
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.- Overrides:
getDroppableIdentifiers
in classNaviTreeNode
- Returns:
- identifiers of droppable items
- See Also:
-
getDragableIdentifiers
- Overrides:
getDragableIdentifiers
in classNaviTreeNode
- Returns:
- Dragable identifier
- See Also:
-
isPrivate
public boolean isPrivate()- Specified by:
isPrivate
in interfaceNaviNodeAccessor
- Overrides:
isPrivate
in classNaviTreeNode
- Returns:
- Is private folder
- See Also:
-
isWorkflow
public boolean isWorkflow()- Specified by:
isWorkflow
in interfaceNaviNodeAccessor
- Overrides:
isWorkflow
in classNaviTreeNode
- Returns:
- Is workflow folder
- See Also:
-
getNextLevelFolders
Initiates lazy loading of next level folders.- Overrides:
getNextLevelFolders
in classNaviTreeNode
- Returns:
- false if limit of max nodes per level is exceeded
- Throws:
AuthenticationException
- authentication exception
-