Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.trapezium.chisel
Class AbstractAction  view AbstractAction download AbstractAction.java

java.lang.Object
  extended bycom.trapezium.chisel.AbstractAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public abstract class AbstractAction
extends java.lang.Object
implements java.awt.event.ActionListener


Field Summary
private  boolean enabled
           
static java.lang.String ENABLED
          Identifier passed to PropertyChangeListeners when enabled flag has changed
static java.lang.String ID_STRING
          mpEDIT addition: provide emacs-like action identifier
protected  java.lang.String idString
           
static java.lang.String LONG_DESCRIPTION
          Verbose description for help, or advanced info
protected  java.lang.String name
           
static java.lang.String NAME
          Text to be displayed on text button or in menu
private  java.beans.PropertyChangeSupport propertyChangeSupport
           
static java.lang.String SHORT_DESCRIPTION
          Short description to be displayed in tooltips etc
protected  java.lang.String shortDescription
           
static java.lang.String SMALL_ICON
          Key string for returning small (16x16) icon to be displayd on button
static java.lang.String SMALL_ICON_DISABLED
          mpEDIT additon: Small Icon in disabled state
private static java.util.ResourceBundle strings
           
 
Constructor Summary
AbstractAction(java.lang.String aIdString)
           
 
Method Summary
abstract  void actionPerformed(java.awt.event.ActionEvent e)
          This method is invoked when an action occurs.
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 java.lang.String getIdString()
           
 java.lang.String getName()
           
 java.lang.String getShortDescription()
           
 java.lang.String getText(java.lang.String key)
           
 boolean isEnabled()
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void setEnabled(boolean b)
           
 void setName(java.lang.String text)
           
 void setShortDescription(java.lang.String text)
           
 void setText(java.lang.String key, java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
Text to be displayed on text button or in menu

See Also:
Constant Field Values

LONG_DESCRIPTION

public static final java.lang.String LONG_DESCRIPTION
Verbose description for help, or advanced info

See Also:
Constant Field Values

SHORT_DESCRIPTION

public static final java.lang.String SHORT_DESCRIPTION
Short description to be displayed in tooltips etc

See Also:
Constant Field Values

SMALL_ICON

public static final java.lang.String SMALL_ICON
Key string for returning small (16x16) icon to be displayd on button

See Also:
Constant Field Values

SMALL_ICON_DISABLED

public static final java.lang.String SMALL_ICON_DISABLED
mpEDIT additon: Small Icon in disabled state

See Also:
Constant Field Values

ID_STRING

public static final java.lang.String ID_STRING
mpEDIT addition: provide emacs-like action identifier

See Also:
Constant Field Values

ENABLED

public static final java.lang.String ENABLED
Identifier passed to PropertyChangeListeners when enabled flag has changed

See Also:
Constant Field Values

strings

private static java.util.ResourceBundle strings

enabled

private boolean enabled

propertyChangeSupport

private java.beans.PropertyChangeSupport propertyChangeSupport

idString

protected java.lang.String idString

name

protected java.lang.String name

shortDescription

protected java.lang.String shortDescription
Constructor Detail

AbstractAction

public AbstractAction(java.lang.String aIdString)
Method Detail

actionPerformed

public abstract void actionPerformed(java.awt.event.ActionEvent e)
Description copied from interface: java.awt.event.ActionListener
This method is invoked when an action occurs.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

getText

public java.lang.String getText(java.lang.String key)

setText

public void setText(java.lang.String key,
                    java.lang.String text)

getIdString

public java.lang.String getIdString()

getShortDescription

public java.lang.String getShortDescription()

setShortDescription

public void setShortDescription(java.lang.String text)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String text)

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean b)

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)