Class ViewCommand

java.lang.Object
  extended byViewCommand

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.


Constructor Summary
ViewCommand()
           
 
Method Summary
 void execute(PuzzleView view)
           
 void execute(PuzzleView view, java.lang.Object o)
           
protected abstract  void hook(PuzzleView view, java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewCommand

public ViewCommand()
Method Detail

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)