org::openide::windows::TopComponent::NodeName Class Reference

Collaboration diagram for org::openide::windows::TopComponent::NodeName:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 NodeName (TopComponent top)
void propertyChange (PropertyChangeEvent ev)

Package Functions

final void attach (Node n)

Private Attributes

transient Reference top
transient Node node

Detailed Description

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


Constructor & Destructor Documentation

org::openide::windows::TopComponent::NodeName::NodeName ( TopComponent  top  )  [inline]

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

Member Function Documentation

final void org::openide::windows::TopComponent::NodeName::attach ( Node  n  )  [inline, package]
void org::openide::windows::TopComponent::NodeName::propertyChange ( PropertyChangeEvent  ev  )  [inline]

Listens to Node.PROP_DISPLAY_NAME.

References attach(), node, org::openide::windows::TopComponent::setName(), and top.


Member Data Documentation

node we are attached to or null

Referenced by attach(), propertyChange(), and org::openide::windows::TopComponent::writeExternal().

weak reference to the top component

Referenced by attach(), and propertyChange().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2