|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pietschy.command.AbstractVisitor
org.pietschy.command.RemoveVisitor
public class RemoveVisitor
This command will traverse a group heirarchy and remove the specified command.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.pietschy.command.AbstractVisitor |
---|
AbstractVisitor.VisitMode |
Field Summary |
---|
Fields inherited from class org.pietschy.command.AbstractVisitor |
---|
DEEP, mode, SHALLOW |
Constructor Summary | |
---|---|
RemoveVisitor(Command removeCommand)
Constructs an new RemoveVisitor that will deeply traverse the group and all its child groups. |
|
RemoveVisitor(Command removeCommand,
AbstractVisitor.VisitMode mode)
Constructs an new RemoveVisitor that will traverse the group according the to visit mode. |
Method Summary | |
---|---|
void |
visit(ActionCommand command)
Called to visit a ActionCommand member of a CommandGroup . |
void |
visit(CommandGroup group)
Called to visit a CommandGroup member of a CommandGroup . |
Methods inherited from class org.pietschy.command.AbstractVisitor |
---|
conditionallyVisitChildren, isParentGroup |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoveVisitor(Command removeCommand)
removeCommand
- the command to removed.public RemoveVisitor(Command removeCommand, AbstractVisitor.VisitMode mode)
removeCommand
- the command to removed.mode
- the mode in which to visit the parent group, either AbstractVisitor.DEEP
or AbstractVisitor.SHALLOW
.Method Detail |
---|
public void visit(ActionCommand command)
GroupVisitor
ActionCommand
member of a CommandGroup
.
command
- the member being visited.public void visit(CommandGroup group)
GroupVisitor
CommandGroup
member of a CommandGroup
.
group
- the member being visited.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |