Add Callback interface to AsterCommand and AsterOperation
authorJulian_Chu <walkingice@0xlab.org>
Mon, 15 Aug 2011 20:43:34 +0000 (04:43 +0800)
committerKan-Ru Chen <kanru@0xlab.org>
Tue, 16 Aug 2011 06:35:40 +0000 (14:35 +0800)
commit382bb2b672710dd7b1be326cfb4548c408bfb82c
tree69e55d25b996eb02eff0024cb1922d3fc3f9abb0
parentb2804a1293b81d3c0ef9328c85efba7ab100faf8
Add Callback interface to AsterCommand and AsterOperation

- Once an Operation finished, the callback method will be called.
  It is the same as AsterCommand.

  Any class which ask AsterWorkspace to fill a command, it should also
  provide a AsterCommand.CommandListener.

- Add a Button to AsterWorkspace, if user thinks he is already finish
  Dragging or Touching, he could click the button.
src/org/zeroxlab/aster/AsterMainPanel.java
src/org/zeroxlab/aster/AsterWorkspace.java
src/org/zeroxlab/aster/cmds/AsterCommand.java
src/org/zeroxlab/aster/operations/AsterOperation.java