JFCML - JFC/Swing
XML Markup Language

com.metasolutions.jfcml.helpers
Class DelegatingAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by 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

Field Summary
 
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
DelegatingAction()
           
DelegatingAction(ActionListener listener)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 ActionListener getActionListener()
           
 void setActionListener(ActionListener listener)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingAction

public DelegatingAction()

DelegatingAction

public DelegatingAction(ActionListener listener)
Parameters:
listener -
Method Detail

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.

SourceForge.net
java.net

Copyright 2004-2005 Shawn Curry, http://jfcml.sourceforge.net
Licensed under the Academic Free License version 2.1