com.metasolutions.jfcml.helpers
Class DelegatingAction
java.lang.Object
javax.swing.AbstractAction
com.metasolutions.jfcml.helpers.DelegatingAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
public class DelegatingAction
- extends AbstractAction
An AbstractAction which delegates it's actionPerformed method to another ActionListener.
This class provides JFCML's custom support for Actions. The delegating behavior makes
it possible to "set" the actionPerformed method. This is much more convienient for the
JFCML interpreter: the BeanShell interpreter can be used to evaluate the actionPerformed
method, and everything else can be configured through JFCML's standard Reflection techniques.
- Version:
- 0.9 May 28, 2005
- Author:
- Shawn Curry
- See Also:
ActionListener
,
AbstractAction
,
Serialized Form
DelegatingAction
public DelegatingAction()
DelegatingAction
public DelegatingAction(ActionListener listener)
- Parameters:
listener
-
actionPerformed
public void actionPerformed(ActionEvent e)
getActionListener
public ActionListener getActionListener()
- Returns:
- Returns the listener.
setActionListener
public void setActionListener(ActionListener listener)
- Parameters:
listener
- The listener to set.
Copyright 2004-2005 Shawn Curry, http://jfcml.sourceforge.net
Licensed under the Academic Free License version 2.1