tweed.swing
Class ContextualizedAction

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--tweed.swing.ContextualizedAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, ContextAction, Contextualized, java.util.EventListener, java.io.Serializable

public abstract class ContextualizedAction
extends javax.swing.AbstractAction
implements ContextAction

A Swing-compatible version of the ContextAction.

Version:
$Id$
Author:
Laurent Caillette
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ContextualizedAction(Contextualized contextualized)
           
ContextualizedAction(Contextualized contextualized, java.lang.String name)
           
ContextualizedAction(Contextualized contextualized, java.lang.String name, javax.swing.Icon icon)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ev)
           
 Context getContext()
           
 ResponsivenessImpact getResponsivenessImpact()
           
abstract  void perform(java.lang.Object actionEvent)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextualizedAction

public ContextualizedAction(Contextualized contextualized)

ContextualizedAction

public ContextualizedAction(Contextualized contextualized,
                            java.lang.String name)

ContextualizedAction

public ContextualizedAction(Contextualized contextualized,
                            java.lang.String name,
                            javax.swing.Icon icon)
Method Detail

getContext

public Context getContext()
Specified by:
getContext in interface Contextualized

actionPerformed

public final void actionPerformed(java.awt.event.ActionEvent ev)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

perform

public abstract void perform(java.lang.Object actionEvent)
Specified by:
perform in interface ContextAction

getResponsivenessImpact

public ResponsivenessImpact getResponsivenessImpact()
Specified by:
getResponsivenessImpact in interface ContextAction


Copyright © 2003 Laurent Caillette. All Rights Reserved.