net.sf.doolin.gui.field.tree.model
Class GUITreeModel

java.lang.Object
  extended by javax.swing.tree.DefaultTreeModel
      extended by net.sf.doolin.gui.field.tree.model.GUITreeModel
All Implemented Interfaces:
Serializable, TreeModel

public class GUITreeModel
extends DefaultTreeModel

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root
 
Constructor Summary
GUITreeModel(SubscriberValidator validator, Object rootObject, List<Node> nodes)
           
 
Method Summary
 Node getNode(String id)
          Looks for a node definition.
protected  Node getRootNode()
          Looks for the root node definition.
protected  void init(SubscriberValidator validator)
          Initializes the model
 
Methods inherited from class javax.swing.tree.DefaultTreeModel
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUITreeModel

public GUITreeModel(SubscriberValidator validator,
                    Object rootObject,
                    List<Node> nodes)
Method Detail

getNode

public Node getNode(String id)
Looks for a node definition. The node definition to look for is the one whose property id is equal to the given id.

Parameters:
id - Searched id
Returns:
Node definition

getRootNode

protected Node getRootNode()
Looks for the root node definition. The root node definition is the node definition whose property root is set to true.

Returns:
Root node definition

init

protected void init(SubscriberValidator validator)
Initializes the model



Copyright © 2011. All Rights Reserved.