|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.virtuosotechnologies.lib.container.PseudoModifiablePropertySet
com.virtuosotechnologies.lib.container.BasicModifiablePropertySet
com.virtuosotechnologies.lib.command.AbstractCommandNode
Base class for implementations of CommandNode. Uses a BasicModifiablePropertySet, and implements all methods except commandInvoked() and getFlavor().
| Field Summary |
| Fields inherited from interface com.virtuosotechnologies.lib.command.CommandListener |
COMMAND_INVOKED_METHOD |
| Constructor Summary | |
protected |
AbstractCommandNode()
Constructor. |
protected |
AbstractCommandNode(PropertySet defaultProperties)
Constructor. |
| Method Summary | |
void |
addChild(CommandNode child)
Add a child node |
void |
addNodeListener(CommandNodeListener listener)
Add listener for node hierarchy events |
protected void |
fireAllChildrenRemovedEvent()
Fires an allChildrenRemoved event |
protected void |
fireChildAddedEvent(CommandNode child,
int index)
Fires a childAdded event |
protected void |
fireChildRemovedEvent(CommandNode child,
int index)
Fires a childRemoved event |
int |
getIndexOfChild(CommandNode child)
Get the index of the given child node, or -1 if the child is not found. |
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 |
static void |
invoke(CommandNode node)
Fire an invoke event. |
boolean |
isChild(CommandNode child)
Is the given node a child of this node |
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 class com.virtuosotechnologies.lib.container.PseudoModifiablePropertySet |
addPropertySetListener, firePropertySetEvent, getDefaultValue, getValue, putValue, removePropertySetListener, resetValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.virtuosotechnologies.lib.command.CommandNode |
getFlavor |
| Methods inherited from interface com.virtuosotechnologies.lib.container.ModifiablePropertySet |
putValue, resetValue |
| Methods inherited from interface com.virtuosotechnologies.lib.container.PropertySet |
addPropertySetListener, getDefaultValue, getValue, removePropertySetListener |
| Methods inherited from interface com.virtuosotechnologies.lib.command.CommandListener |
commandInvoked |
| Constructor Detail |
protected AbstractCommandNode()
protected AbstractCommandNode(PropertySet defaultProperties)
defaultProperties - defaults for PropertySet.| Method Detail |
public void addNodeListener(CommandNodeListener listener)
addNodeListener in interface CommandNodelistener - listener to addpublic void removeNodeListener(CommandNodeListener listener)
removeNodeListener in interface CommandNodelistener - listener to remove
protected void fireChildAddedEvent(CommandNode child,
int index)
child - child addedindex - where the child was added
protected void fireChildRemovedEvent(CommandNode child,
int index)
child - child removedindex - where the child was removed fromprotected void fireAllChildrenRemovedEvent()
public void addChild(CommandNode child)
addChild in interface CommandNodechild - CommandNode to add
public void insertChild(int index,
CommandNode child)
insertChild in interface CommandNodeindex - 0-based index indicating where to add the nodechild - CommandNode to add
IndexOutOfBoundsException - the index was out of boundspublic CommandNode getNthChild(int index)
getNthChild in interface CommandNodeindex - 0-based index indicating which child to get
IndexOutOfBoundsException - the index was out of boundspublic int getNumChildren()
getNumChildren in interface CommandNodepublic void removeNthChild(int index)
removeNthChild in interface CommandNodeindex - 0-based index indicating which child to remove
IndexOutOfBoundsException - the index was out of boundspublic void removeAllChildren()
removeAllChildren in interface CommandNodepublic boolean isChild(CommandNode child)
child - child to test
public int getIndexOfChild(CommandNode child)
child - child node
public static void invoke(CommandNode node)
node - node to invoke
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||