Class DefaultNavigationListDelegate
java.lang.Object
com.ptc.windchill.enterprise.navigation.delegates.DefaultNavigationListDelegate
- All Implemented Interfaces:
com.ptc.windchill.enterprise.navigation.NavigationListDelegate
public class DefaultNavigationListDelegate
extends Object
implements com.ptc.windchill.enterprise.navigation.NavigationListDelegate
Title bar and the primary node are returned for the shell. Secondary, tertiary, etc. nodes are returned as the user
expands nodes in the UI. The nodeString given to the constructor of this delegate is the id of the node being
expanded. The set of nodes returned depends on what node is being expanded. The pattern for our node ids is
primaryNodeId__secondaryNodeID__tertiaryNodeId.
Delegates that want to display something else for these nodes should extend this delegate and override getTitleBar(),
getPrimaryNode(), getSecondaryNodes(), getTertiaryNodes() etc.
Title bars and primary nodes are created from the "main navigation" action model. The id of the primary node is
the action name from the action model. (e.g. "home", "product", "project")
Secondary nodes are constructed in one of two ways:
Tertiary nodes are shown under recently accessed items. The name of the navigation model used is
" navigation". (e.g. "product navigation", "program navigation" etc.)
Supported API: true
Extendable: true
Home....(Title bar) -Home....(primary node) --Overview....(secondary node) --Assignments.(secondary node) ---Submit Change Notice..(tertiary node) ---Submit Change Request.(tertiary node) Product.(Title bar) -Product.(primary node) --Generic Computer.(secondary node) --GOLF_CART........(secondary node) ---Details.(tertiary node) ---Folders.(tertiary node) ---Team....(tertiary node)Details of the nodes returned by the DefaultNavigationListDelegate:
- From recently accessed items if there is a recent stack for that node. Nodes with recent stacks are "product", "project", "program", "change" and "org". The ids of these nodes are their parent node plus the oid of the recent item. For example: "product__OR:wt.pdmlink.PDMLinkProduct:8518"
- For nav sections that don't have recently accessed items (e.g. "home", "supplier", "site" "custom") the secondary
nodes created from an action model "
navigation". (e.g. "home navigation", "supplier navigation" etc.) The id of these nodes is the parent node plus " | ". For example: "home__listAssignments|work"
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionprotected Vector<ObjectVisitedInfo> getRecentStack(String node, Vector<ObjectVisitedInfo> recent) Gets recent stack
Supported API: true
-
Method Details
-
getRecentStack
protected Vector<ObjectVisitedInfo> getRecentStack(String node, Vector<ObjectVisitedInfo> recent) throws WTException Gets recent stack
Supported API: true- Parameters:
node-- Returns:
- Vector with ObjectVisitedInfo
- Throws:
WTException
-