public class NodeFactory
extends java.lang.Object
ChildrenManager.
Example of creating a node with children
GPNode node = NodeFactory.createNode(equipmentBean, new EquipmentChildrenListManager(euipmentBean));
Example of creating a node without children
GPNode leaf = NodeFactory.createNode(equipmentBean);
GPNode,
ChildrenManager| Modifier and Type | Method and Description |
|---|---|
static GPNode |
createNode(java.lang.Object bean)
Instantiates a new leaf Node for the given bean
|
static GPNode[] |
createNode(java.lang.Object[] beans)
Instantiates new leaf Nodes for the given beans
|
static GPNode |
createNode(java.lang.Object bean,
ChildrenManager childrenManager)
Instantiates a new Node for the given bean and NodeManager
|
public static GPNode createNode(java.lang.Object bean, ChildrenManager childrenManager) throws java.beans.IntrospectionException
bean - the bean the new node representschildrenManager - the children manager controlling the children of the new nodejava.beans.IntrospectionExceptionpublic static GPNode createNode(java.lang.Object bean) throws java.beans.IntrospectionException
bean - the bean the new node representsjava.beans.IntrospectionExceptionpublic static GPNode[] createNode(java.lang.Object[] beans) throws java.beans.IntrospectionException
beans - the beans to represent by nodesjava.beans.IntrospectionException