de.tkuhn.swing.actions
Interface ForwardingAction

All Superinterfaces:
javax.swing.Action, java.awt.event.ActionListener, java.util.EventListener
All Known Implementing Classes:
BooleanPreferenceAction, BooleanStateAction, DelegatingAction

public interface ForwardingAction
extends javax.swing.Action

A ForwardingAction is a special Action that forwards all incoming ActionEvents to listeners that can be registered beyond mere processing of the events.

Version:
0.9.3
Author:
Tilmann Kuhn
See Also:
Action

Field Summary
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Method Summary
 void addActionListener(java.awt.event.ActionListener listener)
          Register a listener for events that arrive at the action.
 void removeActionListener(java.awt.event.ActionListener listener)
          Remove a listener from this Action's listener list.
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Method Detail

addActionListener

void addActionListener(java.awt.event.ActionListener listener)
Register a listener for events that arrive at the action.

Parameters:
listener - the ActionListener

removeActionListener

void removeActionListener(java.awt.event.ActionListener listener)
Remove a listener from this Action's listener list.

Parameters:
listener - the ActionListener to be removed.


Copyright © Tilmann Kuhn