Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.virtuosotechnologies.lib.command
Interface CommandNode  view CommandNode download CommandNode.java

All Superinterfaces:
CommandListener, com.virtuosotechnologies.lib.propertyset.PropertySet
All Known Implementing Classes:
AbstractCommandNode

public interface CommandNode
extends com.virtuosotechnologies.lib.propertyset.PropertySet, CommandListener

A node in the command graph


Field Summary
 
Fields inherited from interface com.virtuosotechnologies.lib.command.CommandListener
COMMAND_INVOKED_METHOD
 
Method Summary
 void addChild(CommandNode child)
          Add a child node
 void addNodeListener(CommandNodeListener listener)
          Add listener for node hierarchy events
 CommandNodeFlavor getFlavor()
          Get the flavor of CommandNode
 CommandNode getNthChild(int index)
          Get the indexed child
 int getNumChildren()
          Get the number of children
 void insertChild(int index, CommandNode child)
          Insert a child node at the given index
 void removeAllChildren()
          Remove all children
 void removeNodeListener(CommandNodeListener listener)
          Remove listener for node hierarchy events
 void removeNthChild(int index)
          Remove a child node
 
Methods inherited from interface com.virtuosotechnologies.lib.propertyset.PropertySet
addPropertySetListener, getDefaultValue, getValue, putValue, removePropertySetListener, resetValue
 
Methods inherited from interface com.virtuosotechnologies.lib.command.CommandListener
commandInvoked
 

Method Detail

getFlavor

public CommandNodeFlavor getFlavor()
Get the flavor of CommandNode


addNodeListener

public void addNodeListener(CommandNodeListener listener)
Add listener for node hierarchy events


removeNodeListener

public void removeNodeListener(CommandNodeListener listener)
Remove listener for node hierarchy events


addChild

public void addChild(CommandNode child)
Add a child node


insertChild

public void insertChild(int index,
                        CommandNode child)
Insert a child node at the given index


getNthChild

public CommandNode getNthChild(int index)
Get the indexed child


getNumChildren

public int getNumChildren()
Get the number of children


removeNthChild

public void removeNthChild(int index)
Remove a child node


removeAllChildren

public void removeAllChildren()
Remove all children