net.sf.jomic.tools
Class ActionDelegate
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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