org.savarese.unicorn.ui.event
Class ChainedActionListener
java.lang.Object
org.savarese.unicorn.ui.event.ChainedEventListener<java.awt.event.ActionListener,java.awt.event.ActionEvent>
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.
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.
Copyright © 2006 Daniel F. Savarese. All Rights Reserved.