站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 5.5.0

NodeListener (NetBeans Nodes API) - NetBeans API Javadoc 5.5.0

org.openide.nodes 6.7.22

org.openide.nodes
Interface NodeListener

All Superinterfaces:
EventListener, PropertyChangeListener
All Known Implementing Classes:
FilterNode.NodeAdapter, NodeAdapter

public interface NodeListener
extends PropertyChangeListener

Listener to special changes in Nodes. Is a property change listener so that all changes in properties in the node can be fired in the usual way.

Methods childrenAdded, childrenRemoved and childrenReordered are called with Children.MUTEX.writeAccess which guarantees that no other thread can change the hierarchy during that time, but also requires proper implementation of all NodeListeners which should avoid calls to other threads which might require access to Children.MUTEX due to changes nodes hierarchy or do any other kind of starvation.


Method Summary
 void childrenAdded(NodeMemberEvent ev)
          Fired when a set of new children is added.
 void childrenRemoved(NodeMemberEvent ev)
          Fired when a set of children is removed.
 void childrenReordered(NodeReorderEvent ev)
          Fired when the order of children is changed.
 void nodeDestroyed(NodeEvent ev)
          Fired when the node is deleted.
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Method Detail

childrenAdded

void childrenAdded(NodeMemberEvent ev)
Fired when a set of new children is added.

Parameters:
ev - event describing the action

childrenRemoved

void childrenRemoved(NodeMemberEvent ev)
Fired when a set of children is removed.

Parameters:
ev - event describing the action

childrenReordered

void childrenReordered(NodeReorderEvent ev)
Fired when the order of children is changed.

Parameters:
ev - event describing the change

nodeDestroyed

void nodeDestroyed(NodeEvent ev)
Fired when the node is deleted.

Parameters:
ev - event describing the node

org.openide.nodes 6.7.22

Built on May 28 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.