net.sf.jomic.tools
Class ActionDelegate

java.lang.Object
  extended by net.sf.jomic.tools.ActionDelegate
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class ActionDelegate
extends java.lang.Object
implements java.awt.event.ActionListener

Delegate for ActionEvents.

Author:
Thomas Aglassinger

Constructor Summary
ActionDelegate(org.apache.commons.logging.Log newLogger)
          Creates a new delegate with logging messages going to logger.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
           
 void addActionListener(java.awt.event.ActionListener listener)
           
protected  void finalize()
          Checks that all listeners have been removed, and warns if not.
 void removeActionListener(java.awt.event.ActionListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionDelegate

public ActionDelegate(org.apache.commons.logging.Log newLogger)
Creates a new delegate with logging messages going to logger.

Parameters:
newLogger - logger where the delegate logs its messages.
Method Detail

actionPerformed

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

addActionListener

public void addActionListener(java.awt.event.ActionListener listener)

removeActionListener

public void removeActionListener(java.awt.event.ActionListener listener)

finalize

protected void finalize()
                 throws java.lang.Throwable
Checks that all listeners have been removed, and warns if not.

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable