org.vizzini.ui
Class ActionManager.CallbackAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.vizzini.ui.ActionManager.CallbackAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
ActionManager

static class ActionManager.CallbackAction
extends AbstractAction

Provides an action which looks up the method to call.

Since:
v0.1
Version:
v0.2
Author:
Jeffrey M. Thompson

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ActionManager.CallbackAction()
           
 
Method Summary
 void actionPerformed(ActionEvent event)
          Perform the action callback.
protected  void invokeCallback(Object target, Method callback, ActionEvent event)
          Invoke the given method on the given target.
protected  Method locateCallback(Object target)
          Locate the callback method on the given target.
protected  void showMessage(Object target, String msg)
          Show the given message to the user.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionManager.CallbackAction

ActionManager.CallbackAction()
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Perform the action callback.

Since:
v0.1

invokeCallback

protected void invokeCallback(Object target,
                              Method callback,
                              ActionEvent event)
Invoke the given method on the given target.

Since:
v0.1

locateCallback

protected Method locateCallback(Object target)
Locate the callback method on the given target.

Since:
v0.1

showMessage

protected void showMessage(Object target,
                           String msg)
Show the given message to the user.

Since:
v0.1


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02