nl.tudelft.simulation.naming.context
Class ContextTreeModel

java.lang.Object
  extended by javax.swing.tree.DefaultTreeModel
      extended by nl.tudelft.simulation.naming.context.ContextTreeModel
All Implemented Interfaces:
Serializable, TreeModel

public class ContextTreeModel
extends DefaultTreeModel

The ContextTreeModel defines the inner structure of the context.

(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Since:
1.0
Version:
1.2 2004-03-24
Author:
Peter Jacobs
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root
 
Constructor Summary
ContextTreeModel(EventContext context)
          constructs a new ContextTreeModel
ContextTreeModel(EventContext context, Class[] displayClasses, boolean displayFields)
          constructs a new ContextTreeModel
 
Method Summary
protected  void fireTreeStructureChanged(Object arg0, Object[] arg1, int[] arg2, Object[] arg3)
           
 
Methods inherited from class javax.swing.tree.DefaultTreeModel
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, 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

ContextTreeModel

public ContextTreeModel(EventContext context)
                 throws NamingException
constructs a new ContextTreeModel

Parameters:
context - the context
Throws:
NamingException - on failure

ContextTreeModel

public ContextTreeModel(EventContext context,
                        Class[] displayClasses,
                        boolean displayFields)
                 throws NamingException
constructs a new ContextTreeModel

Parameters:
context - the context
displayClasses - the set of classes to display as children
displayFields - should we display them?
Throws:
NamingException - on failure
Method Detail

fireTreeStructureChanged

protected void fireTreeStructureChanged(Object arg0,
                                        Object[] arg1,
                                        int[] arg2,
                                        Object[] arg3)
Overrides:
fireTreeStructureChanged in class DefaultTreeModel
See Also:
DefaultTreeModel.fireTreeStructureChanged( java.lang.Object, java.lang.Object[], int[], java.lang.Object[])


Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.