nl.tudelft.simulation.naming.context
Class ContextTreeModel
java.lang.Object
javax.swing.tree.DefaultTreeModel
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
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 |
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 contextdisplayClasses
- the set of classes to display as childrendisplayFields
- should we display them?
- Throws:
NamingException
- on failure
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.