|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.visitor.BasicNodeExpander
public class BasicNodeExpander
This class implements NodeExpander by using an Expander and NodeLinkInfo delegates. The Expander is an interface used for selecting an implementation of the expand() method. The NodeLinkInfo interface specifies applicable assocation roles and the Expander instance to use for a given Persistable object.
Using this class, it is possible to completely customize a multi-level navigation by plugging-in the appropriate NodeLinkInfo and Expander implementations.
There is a tight coupling between the RoleLinkInfo and Expander objects
that are used within this class. The Expander requires a specific type
of roleObject for its implementation. The NodeLinkInfo is expected to
return RoleInfoObjects that have the appropriate type of roleObject instances.
Supported API: true
Extendable: true
wt.util.NodeLinkInfo,
wt.util.Expander| Method Summary | |
|---|---|
void |
expandNode(Persistable parentNode,
Vector links,
Vector nodes)
Expands the node returning all of the links and nodes associated with the parent node. |
NodeExpandInfo |
getNodeExpandInfo()
Gets the object for the association that plays role: theNodeExpandInfo. |
void |
setNodeExpandInfo(NodeExpandInfo a_NodeExpandInfo)
Sets the object for the association that plays role: theNodeExpandInfo. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public NodeExpandInfo getNodeExpandInfo()
public void setNodeExpandInfo(NodeExpandInfo a_NodeExpandInfo)
throws WTPropertyVetoException
a_NodeExpandInfo -
WTPropertyVetoException
public void expandNode(Persistable parentNode,
Vector links,
Vector nodes)
throws WTException
expandNode in interface NodeExpanderparentNode - links - nodes -
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||