net.sf.jomic.tools
Class ActionDelegate

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

public class ActionDelegate
extends Object
implements ActionListener

Delegate for ActionEvents.

Author:
Thomas Aglassinger

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

Constructor Detail

ActionDelegate

public ActionDelegate(Logger 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(ActionEvent event)
Specified by:
actionPerformed in interface ActionListener

addActionListener

public void addActionListener(ActionListener listener)

removeActionListener

public void removeActionListener(ActionListener listener)

finalize

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

Overrides:
finalize in class Object
Throws:
Throwable