com.samskivert.swing.util
Class MenuUtil.ReflectedAction
java.lang.Object
com.samskivert.swing.util.MenuUtil.ReflectedAction
- All Implemented Interfaces:
- ActionListener, EventListener
- Enclosing class:
- MenuUtil
protected static class MenuUtil.ReflectedAction
- extends Object
- implements ActionListener
Used to wire menu items directly up to method calls.
|
Field Summary |
protected Method |
_method
The method to call when the menu item is invoked. |
protected Object |
_target
The object on which to invoke the reflected method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_target
protected Object _target
- The object on which to invoke the reflected method.
_method
protected Method _method
- The method to call when the menu item is invoked.
MenuUtil.ReflectedAction
public MenuUtil.ReflectedAction(Object target,
String methodName)
actionPerformed
public void actionPerformed(ActionEvent event)
- Specified by:
actionPerformed in interface ActionListener
Copyright © 2000-2008 Michael Bayne.
All Rights Reserved.