org.openide.windows
Class TopComponent.NodeName

java.lang.Object
  |
  +--org.openide.nodes.NodeAdapter
        |
        +--org.openide.windows.TopComponent.NodeName
All Implemented Interfaces:
EventListener, NodeListener, PropertyChangeListener
Enclosing class:
TopComponent

public static class TopComponent.NodeName
extends NodeAdapter

This class provides the connection between the node name and a name of the component.


Constructor Summary
TopComponent.NodeName(TopComponent top)
          Constructs new name adapter that can be attached to any node and will listen on changes of its display name and modify the name of the component.
 
Method Summary
 void propertyChange(PropertyChangeEvent ev)
          Listens to Node.PROP_DISPLAY_NAME.
 
Methods inherited from class org.openide.nodes.NodeAdapter
childrenAdded, childrenRemoved, childrenReordered, nodeDestroyed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopComponent.NodeName

public TopComponent.NodeName(TopComponent top)
Constructs new name adapter that can be attached to any node and will listen on changes of its display name and modify the name of the component.
Parameters:
top - top compoonent to modify its name
Method Detail

propertyChange

public void propertyChange(PropertyChangeEvent ev)
Listens to Node.PROP_DISPLAY_NAME.
Overrides:
propertyChange in class NodeAdapter


Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.