com.im.ijc.core/1 5.9.4

com.im.ijc.core.api.nodes
Class NodesConfig

java.lang.Object
  extended by com.im.ijc.core.api.nodes.NodesConfig

public final class NodesConfig
extends Object

UNSTABLE API!

Represents root of TreeView node structure. Created in order to show different view tree of DFItems.


Method Summary
 Node createNode(Object key)
          Creates node for key, @see setNodesFactory(NodesFactory nodesFactory) to customize view
 Node createRootNode()
          Creates root node of treeView
 List getChildrenKeys(Object parent)
          Default implementation of creating parameters for ChildrenKeys of nodes.
 FilterMapping getFilterMapping(Class type)
          get customizer to customize key (actions,...)
static NodesConfig newInstance(Object item)
          use this method to create new instance
 void setNodesFactory(NodesFactory nodesFactory)
          Allows to customize Children for different nodes
 void setShowChildren(boolean b)
          show only root node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static NodesConfig newInstance(Object item)
use this method to create new instance

Parameters:
item - The root key

createRootNode

public Node createRootNode()
Creates root node of treeView

Returns:
The root node

getFilterMapping

public FilterMapping getFilterMapping(Class type)
get customizer to customize key (actions,...)

Parameters:
type - The key type (e.g. DFDataTree.class)
Returns:
The customizer

setShowChildren

public void setShowChildren(boolean b)
show only root node

Parameters:
b -

setNodesFactory

public void setNodesFactory(NodesFactory nodesFactory)
Allows to customize Children for different nodes

Parameters:
nodesFactory -

createNode

public Node createNode(Object key)
Creates node for key, @see setNodesFactory(NodesFactory nodesFactory) to customize view

Parameters:
key - The key from Children.Keys
Returns:
The new node

getChildrenKeys

public List getChildrenKeys(Object parent)
Default implementation of creating parameters for ChildrenKeys of nodes.

Returns:
The list of parameters for Children.Keys.setKeys(...)

com.im.ijc.core/1 5.9.4