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