Class AJComponentAction

java.lang.Object
javax.swing.AbstractAction
info.monitorenter.gui.chart.events.AJComponentAction
All Implemented Interfaces:
ActionListener, PropertyChangeListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
JComponentActionSetBackground, JComponentActionSetCustomBackground, JComponentActionSetCustomBackgroundSingleton, JComponentActionSetCustomForeground, JComponentActionSetCustomForegroundSingleton, JComponentActionSetForeground

public abstract class AJComponentAction extends AbstractAction implements PropertyChangeListener

The base class that connects triggered actions with an JComponent instance.

Every subclass may delegate it's constructor-given JComponent instance as protected member m_component.

Version:
$Revision: 1.5 $
Author:
Achim Westermann
See Also:
  • Field Details

    • m_component

      protected JComponent m_component
      The target of this action.
  • Constructor Details

    • AJComponentAction

      public AJComponentAction(JComponent component, String description)
      Create an Action that accesses the JComponent and identifies itself with the given action String.
      Parameters:
      component - the target the action will work on.
      description - the descriptive String that will be displayed by AbstractButton subclasses that get this Action assigned ( AbstractButton.setAction(javax.swing.Action)).