org.escot
Class MethodAdapter

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--org.escot.MethodAdapter
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable

public class MethodAdapter
extends AbstractAction

The MethodAdapter class adapts methods to be actions

See Also:
Serialized Form

Field Summary
protected  Object[] mArgs
           
protected  Method mMethod
           
protected  Object mTarget
           
 
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
MethodAdapter(Object target, Method m)
           
MethodAdapter(Object target, Method m, String name)
           
MethodAdapter(Object target, Method m, String name, Object[] args)
           
 
Method Summary
 void actionPerformed(ActionEvent evt)
          Invokes the adapted method.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mTarget

protected Object mTarget

mMethod

protected Method mMethod

mArgs

protected Object[] mArgs
Constructor Detail

MethodAdapter

public MethodAdapter(Object target,
                     Method m,
                     String name,
                     Object[] args)

MethodAdapter

public MethodAdapter(Object target,
                     Method m,
                     String name)

MethodAdapter

public MethodAdapter(Object target,
                     Method m)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent evt)
Invokes the adapted method.
Overrides:
actionPerformed in class AbstractAction