Package com.ptc.core.components.beans
Class TreeHandlerAdapter
java.lang.Object
com.ptc.core.components.beans.TreeHandlerAdapter
- All Implemented Interfaces:
TreeHandler
- Direct Known Subclasses:
ESIShowRelatedESITxnsTreeHandler,MESShopOrdersTreeHandler
Base class for tree handlers. Uses a Set of NmOids to determine if nodes need to be expanded.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddExpandedNode(Object node)
Supported API: trueGet the current set of expanded oids.
Supported API: truebooleanhasChildren(Object node)
Supported API: truebooleanisExpandNeeded(Object node, int level)
Supported API: truevoidsetExpandedOids(Set eo) Set the current set of expanded oids.void
Supported API: trueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ptc.core.components.beans.TreeHandler
getNodes, getRootNodes
-
Method Details
-
getModelContext
Supported API: true- Specified by:
getModelContextin interfaceTreeHandler- Returns:
- ModelContext
- See Also:
-
setModelContext
Supported API: true- Specified by:
setModelContextin interfaceTreeHandler- Parameters:
mc- The context- See Also:
-
getExpandedOids
Get the current set of expanded oids. If null, all nodes will be expanded.
Supported API: true- Specified by:
getExpandedOidsin interfaceTreeHandler- Returns:
- The NmOids that are expanded
-
setExpandedOids
Set the current set of expanded oids. If null, all nodes will be expanded.
Supported API: true- Parameters:
eo- The set of expanded oids- Throws:
WTException
-
isExpandNeeded
Supported API: true- Specified by:
isExpandNeededin interfaceTreeHandler- Parameters:
node- The node to checklevel- The level at which the node appears within the tree- Returns:
- boolean
- Throws:
WTException- See Also:
-
addExpandedNode
Supported API: true- Specified by:
addExpandedNodein interfaceTreeHandler- Throws:
WTException- See Also:
-
hasChildren
Supported API: true- Specified by:
hasChildrenin interfaceTreeHandler- Parameters:
node- The node to check- Returns:
- boolean
- Throws:
WTException- See Also:
-