Savarese.Org

org.savarese.unicorn.ui.event
Class ChainedActionListener

java.lang.Object
  extended by org.savarese.unicorn.ui.event.ChainedEventListener<java.awt.event.ActionListener,java.awt.event.ActionEvent>
      extended by org.savarese.unicorn.ui.event.ChainedActionListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, ChainedEventListener.EventProcessor<java.awt.event.ActionListener,java.awt.event.ActionEvent>

public class ChainedActionListener
extends ChainedEventListener<java.awt.event.ActionListener,java.awt.event.ActionEvent>
implements java.awt.event.ActionListener, ChainedEventListener.EventProcessor<java.awt.event.ActionListener,java.awt.event.ActionEvent>

An implementation of ChainedEventListener to process ActionEvents for chains of ActionListeners.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.savarese.unicorn.ui.event.ChainedEventListener
ChainedEventListener.EventProcessor<L extends java.util.EventListener,E extends java.util.EventObject>
 
Field Summary
 
Fields inherited from class org.savarese.unicorn.ui.event.ChainedEventListener
_listeners_, _processor_
 
Constructor Summary
ChainedActionListener()
          Instantiates a ChainedActionListener using the same ChainedActionListener as the event processor.
ChainedActionListener(ChainedEventListener.EventProcessor<java.awt.event.ActionListener,java.awt.event.ActionEvent> processor)
          Instantiates a ChainedActionListener using the specified ChainedEventListener.EventProcessor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          Delivers an ActionEvent to the chain of ActionListeners.
 void processEvent(java.awt.event.ActionListener listener, java.awt.event.ActionEvent event)
          Calls listener.actionPerformed(event);
 
Methods inherited from class org.savarese.unicorn.ui.event.ChainedEventListener
_processEvent_, addEventListener, removeEventListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainedActionListener

public ChainedActionListener(ChainedEventListener.EventProcessor<java.awt.event.ActionListener,java.awt.event.ActionEvent> processor)
Instantiates a ChainedActionListener using the specified ChainedEventListener.EventProcessor.

Parameters:
processor - TheChainedEventListener.EventProcessor to use to process ActionEvents.

ChainedActionListener

public ChainedActionListener()
Instantiates a ChainedActionListener using the same ChainedActionListener as the event processor.

Method Detail

processEvent

public void processEvent(java.awt.event.ActionListener listener,
                         java.awt.event.ActionEvent event)
Calls listener.actionPerformed(event);

Specified by:
processEvent in interface ChainedEventListener.EventProcessor<java.awt.event.ActionListener,java.awt.event.ActionEvent>
Parameters:
listener - The ActionListener to receive the event.
event - The ActionEvent to deliver.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Delivers an ActionEvent to the chain of ActionListeners.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
event - The ActionEvent to deliver.

Savarese.Org

Copyright © 2006 Daniel F. Savarese. All Rights Reserved.