|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--org.escot.MethodAdapter
The MethodAdapter class adapts methods to be actions
| 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 |
protected Object mTarget
protected Method mMethod
protected Object[] mArgs
| Constructor Detail |
public MethodAdapter(Object target,
Method m,
String name,
Object[] args)
public MethodAdapter(Object target,
Method m,
String name)
public MethodAdapter(Object target,
Method m)
| Method Detail |
public void actionPerformed(ActionEvent evt)
actionPerformed in class AbstractAction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||