nl.tudelft.simulation.naming.context
Class ContextTreeModel

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

public class ContextTreeModel
extends javax.swing.tree.DefaultTreeModel

The ContextTreeModel defines the inner structure of the context.

(c) copyright 2003 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public License (GPL) , 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(javax.naming.event.EventContext context)
          constructs a new ContextTreeModel
ContextTreeModel(javax.naming.event.EventContext context, java.lang.Class[] displayClasses, boolean displayFields)
          constructs a new ContextTreeModel
 
Method Summary
protected  void fireTreeStructureChanged(java.lang.Object arg0, java.lang.Object[] arg1, int[] arg2, java.lang.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(javax.naming.event.EventContext context)
                 throws javax.naming.NamingException
constructs a new ContextTreeModel

Parameters:
context - the context
Throws:
javax.naming.NamingException - on failure

ContextTreeModel

public ContextTreeModel(javax.naming.event.EventContext context,
                        java.lang.Class[] displayClasses,
                        boolean displayFields)
                 throws javax.naming.NamingException
constructs a new ContextTreeModel

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

fireTreeStructureChanged

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


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