com.virtuosotechnologies.lib.command
Class ChildRemovedEvent
java.lang.Object
java.util.EventObject
com.virtuosotechnologies.lib.command.CommandNodeEvent
com.virtuosotechnologies.lib.command.ChildRemovedEvent
- All Implemented Interfaces:
- Serializable
- public class ChildRemovedEvent
- extends CommandNodeEvent
An event indicating a child was removed
- See Also:
- Serialized Form
ChildRemovedEvent
public ChildRemovedEvent(CommandNode parent,
CommandNode child,
int childIndex)
- Constructor.
- Parameters:
parent
- the CommandNode whose children have changedchild
- the CommandNode that was removedchildIndex
- the index of the CommandNode that was removed
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