com.virtuosotechnologies.lib.command
Class ChildRemovedEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.virtuosotechnologies.lib.command.CommandNodeEvent
          extended bycom.virtuosotechnologies.lib.command.ChildRemovedEvent
All Implemented Interfaces:
Serializable

public class ChildRemovedEvent
extends CommandNodeEvent

An event indicating a child was removed

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ChildRemovedEvent(CommandNode parent, CommandNode child, int childIndex)
          Constructor.
 
Method Summary
 int getChildIndex()
          Get the index of the child node
 CommandNode getChildNode()
          Get the child command node
 
Methods inherited from class com.virtuosotechnologies.lib.command.CommandNodeEvent
getParentNode
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChildRemovedEvent

public ChildRemovedEvent(CommandNode parent,
                         CommandNode child,
                         int childIndex)
Constructor.

Parameters:
parent - the CommandNode whose children have changed
child - the CommandNode that was removed
childIndex - the index of the CommandNode that was removed
Method Detail

getChildNode

public final CommandNode getChildNode()
Get the child command node

Returns:
the child CommandNode

getChildIndex

public final int getChildIndex()
Get the index of the child node

Returns:
0-based index