|
3.2.4: 2013-12-06 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.util.overview.loader.ExtensionChildNodeLoader<I>
public class ExtensionChildNodeLoader<I>
Wrapper for node loaders that automatically hooks into the
extension system when loading child nodes for a parent node.
It works by first delegating all method calls to the parent
node loader, but the loadChildNodes(DbControl, OverviewContext, Node)
contains additional logic to query the extension system and
call ChildNodeLoaderAction.createChildNodes(DbControl, OverviewContext, Node)
for any action created by the an extension.
Field Summary | |
---|---|
private NodeLoader<I> |
parent
|
Constructor Summary | |
---|---|
ExtensionChildNodeLoader(NodeLoader<I> parent)
Wrap the given parent node loader. |
Method Summary | |
---|---|
Node |
createForwardNode(DbControl dc,
OverviewContext context,
Node parentNode)
Call the same method on the 'parent' node loader. |
Node |
createPropertyNode(DbControl dc,
OverviewContext context,
Node parentNode)
Call the same method on the 'parent' node loader. |
Node |
createReverseNode(DbControl dc,
OverviewContext context,
Node childNode)
Call the same method on the 'parent' node loader. |
Node |
createRootNode(DbControl dc,
OverviewContext context,
I item)
Call the same method on the 'parent' node loader. |
boolean |
loadChildNodes(DbControl dc,
OverviewContext context,
Node node)
Call the same method on the 'parent' node loader. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final NodeLoader<I> parent
Constructor Detail |
---|
public ExtensionChildNodeLoader(NodeLoader<I> parent)
Method Detail |
---|
public Node createForwardNode(DbControl dc, OverviewContext context, Node parentNode)
createForwardNode
in interface NodeLoader<I>
dc
- The DbControl to use for database accesscontext
- The overview contextparentNode
- The parent node
public Node createPropertyNode(DbControl dc, OverviewContext context, Node parentNode)
createPropertyNode
in interface NodeLoader<I>
dc
- The DbControl to use for database accesscontext
- The overview contextparentNode
- The parent node
public Node createReverseNode(DbControl dc, OverviewContext context, Node childNode)
loadChildNodes(DbControl, OverviewContext, Node)
is called
for each of the new nodes.
createReverseNode
in interface NodeLoader<I>
dc
- The DbControl to use for database accesscontext
- The overview contextchildNode
- The child node
public Node createRootNode(DbControl dc, OverviewContext context, I item)
createRootNode
in interface NodeLoader<I>
dc
- The DbControl to use for database accesscontext
- The overview contextitem
- The root item
public boolean loadChildNodes(DbControl dc, OverviewContext context, Node node)
ChildNodeLoaderAction
:s and let
each of them create their child nodes.
loadChildNodes
in interface NodeLoader<I>
dc
- The DbControl to use for database accesscontext
- The overview contextnode
- The node
public String toString()
toString
in class Object
|
3.2.4: 2013-12-06 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |