public class ContextNode extends DefaultMutableTreeNode implements NamespaceChangeListener
(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.
Modifier and Type | Field and Description |
---|---|
static nl.tudelft.simulation.event.EventType |
NODE_CHANGED_EVENT
NODE_CHANGED_EVENT
|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
Constructor and Description |
---|
ContextNode(ContextTreeModel treeModel,
String name,
EventContext context,
Class[] displayClasses,
boolean displayFields)
constructs a new ContextNode
|
ContextNode(Object userObject)
constructs a new ContextNode
|
Modifier and Type | Method and Description |
---|---|
void |
namingExceptionThrown(NamingExceptionEvent event) |
void |
objectAdded(NamingEvent event) |
void |
objectRemoved(NamingEvent event) |
void |
objectRenamed(NamingEvent event) |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
public static final nl.tudelft.simulation.event.EventType NODE_CHANGED_EVENT
public ContextNode(ContextTreeModel treeModel, String name, EventContext context, Class[] displayClasses, boolean displayFields) throws NamingException
treeModel
- the treeModelname
- the namecontext
- the contextdisplayClasses
- the classes to displaydisplayFields
- the fields to showNamingException
- on failurepublic ContextNode(Object userObject)
userObject
- the userObjectpublic void objectAdded(NamingEvent event)
objectAdded
in interface NamespaceChangeListener
#objectAdded(javax.naming.event.NamingEvent)
public void objectRemoved(NamingEvent event)
objectRemoved
in interface NamespaceChangeListener
#objectRemoved(javax.naming.event.NamingEvent)
public void objectRenamed(NamingEvent event)
objectRenamed
in interface NamespaceChangeListener
#objectRenamed(javax.naming.event.NamingEvent)
public void namingExceptionThrown(NamingExceptionEvent event)
namingExceptionThrown
in interface NamingListener
#namingExceptionThrown(javax.naming.event.NamingExceptionEvent)
Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.