Class ViewCommand
java.lang.Object
ViewCommand
- public abstract class ViewCommand
- extends java.lang.Object
A command executed by a view. Subclasses implement
the hook method, clients call execute which will
call the hook method. Client code can assume
every command has an execute method, but the execute
method calls the hook method which does the real work.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewCommand
public ViewCommand()
execute
public void execute(PuzzleView view)
execute
public void execute(PuzzleView view,
java.lang.Object o)
hook
protected abstract void hook(PuzzleView view,
java.lang.Object o)