com.samskivert.swing.util
Class MenuUtil.ReflectedAction

java.lang.Object
  extended by 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.
 
Constructor Summary
MenuUtil.ReflectedAction(Object target, String methodName)
           
 
Method Summary
 void actionPerformed(ActionEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_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.

Constructor Detail

MenuUtil.ReflectedAction

public MenuUtil.ReflectedAction(Object target,
                                String methodName)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Specified by:
actionPerformed in interface ActionListener


Copyright © 2000-2008 Michael Bayne. All Rights Reserved.