org.openide.nodes 7.9.2

org.openide.nodes
Class NodeMemberEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.openide.nodes.NodeEvent
          extended by org.openide.nodes.NodeMemberEvent
All Implemented Interfaces:
Serializable

public class NodeMemberEvent
extends NodeEvent

Event describing change in the list of a node's children.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Method Summary
 Node[] getDelta()
          Get a list of children that changed.
 int[] getDeltaIndices()
          Get an array of indices of the changed nodes.
 List<Node> getSnapshot()
          Provides static and immmutable info about the number, and instances of nodes available during the time the event was emited.
 boolean isAddEvent()
          Get the type of action.
 String toString()
          Human presentable information about the event
 
Methods inherited from class org.openide.nodes.NodeEvent
getNode
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getSnapshot

public final List<Node> getSnapshot()
Provides static and immmutable info about the number, and instances of nodes available during the time the event was emited.

Returns:
immutable and unmodifiable list of nodes
Since:
7.7

isAddEvent

public final boolean isAddEvent()
Get the type of action.

Returns:
true if children were added, false if removed

getDelta

public final Node[] getDelta()
Get a list of children that changed.

Returns:
array of nodes that changed

getDeltaIndices

public int[] getDeltaIndices()
Get an array of indices of the changed nodes.

Returns:
array with the same length as getDelta()

toString

public String toString()
Human presentable information about the event

Overrides:
toString in class EventObject

org.openide.nodes 7.9.2

Built on August 26 2009.  |  Portions Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.