de.uni_paderborn.fujaba.mpEdit
Class AbstractMpAction

java.lang.Object
  extended byde.uni_paderborn.fujaba.mpEdit.AbstractMpAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, MpAction

abstract class AbstractMpAction
extends java.lang.Object
implements MpAction

This class will be changed to inherit from swing AbstractAction

Version:
1.0 Sun 1997.12.07
Author:
Artur Biesiadowski

Field Summary
private  boolean enabled
          No comment provided by developer, please add a comment to improve documentation.
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
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.String LONG_DESCRIPTION
          Verbose description for help, or advanced info
protected  java.lang.String name
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.String NAME
          Text to be displayed on text button or in menu
private  java.beans.PropertyChangeSupport propertyChangeSupport
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.String SHORT_DESCRIPTION
          Short description to be displayed in tooltips etc
protected  java.lang.String shortDescription
          No comment provided by developer, please add a comment to improve documentation.
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
          No comment provided by developer, please add a comment to improve documentation.
 
Constructor Summary
AbstractMpAction(java.lang.String aIdString)
          Constructor for class AbstractMpAction
 
Method Summary
abstract  void actionPerformed(java.awt.event.ActionEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Access method for an one to n association.
 java.lang.String getIdString()
          Get the idString attribute of the AbstractMpAction object
 java.lang.String getName()
          Get the name attribute of the AbstractMpAction object
 java.lang.String getShortDescription()
          Get the shortDescription attribute of the AbstractMpAction object
 java.lang.String getText(java.lang.String key)
          Get the text attribute of the AbstractMpAction object
 boolean isEnabled()
          Get the enabled attribute of the AbstractMpAction object
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          No comment provided by developer, please add a comment to improve documentation.
 void setEnabled(boolean b)
          Sets the enabled attribute of the AbstractMpAction object
 void setName(java.lang.String text)
          Sets the name attribute of the AbstractMpAction object
 void setShortDescription(java.lang.String text)
          Sets the shortDescription attribute of the AbstractMpAction object
 void setText(java.lang.String key, java.lang.String text)
          Sets the text attribute of the AbstractMpAction object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

strings

private static java.util.ResourceBundle strings
No comment provided by developer, please add a comment to improve documentation.


enabled

private boolean enabled
No comment provided by developer, please add a comment to improve documentation.


propertyChangeSupport

private java.beans.PropertyChangeSupport propertyChangeSupport
No comment provided by developer, please add a comment to improve documentation.


idString

protected java.lang.String idString
No comment provided by developer, please add a comment to improve documentation.


name

protected java.lang.String name
No comment provided by developer, please add a comment to improve documentation.


shortDescription

protected java.lang.String shortDescription
No comment provided by developer, please add a comment to improve documentation.


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
Constructor Detail

AbstractMpAction

public AbstractMpAction(java.lang.String aIdString)
Constructor for class AbstractMpAction

Parameters:
aIdString - No description provided
Method Detail

actionPerformed

public abstract void actionPerformed(java.awt.event.ActionEvent e)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - No description provided

getText

public java.lang.String getText(java.lang.String key)
Get the text attribute of the AbstractMpAction object

Specified by:
getText in interface MpAction
Parameters:
key - No description provided
Returns:
The text value

setText

public void setText(java.lang.String key,
                    java.lang.String text)
Sets the text attribute of the AbstractMpAction object

Specified by:
setText in interface MpAction
Parameters:
key - The new text value
text - The new text value

getIdString

public java.lang.String getIdString()
Get the idString attribute of the AbstractMpAction object

Specified by:
getIdString in interface MpAction
Returns:
The idString value

getShortDescription

public java.lang.String getShortDescription()
Get the shortDescription attribute of the AbstractMpAction object

Specified by:
getShortDescription in interface MpAction
Returns:
The shortDescription value

setShortDescription

public void setShortDescription(java.lang.String text)
Sets the shortDescription attribute of the AbstractMpAction object

Specified by:
setShortDescription in interface MpAction
Parameters:
text - The new shortDescription value

getName

public java.lang.String getName()
Get the name attribute of the AbstractMpAction object

Specified by:
getName in interface MpAction
Returns:
The name value

setName

public void setName(java.lang.String text)
Sets the name attribute of the AbstractMpAction object

Specified by:
setName in interface MpAction
Parameters:
text - The new name value

isEnabled

public boolean isEnabled()
Get the enabled attribute of the AbstractMpAction object

Specified by:
isEnabled in interface MpAction
Returns:
The enabled value

setEnabled

public void setEnabled(boolean b)
Sets the enabled attribute of the AbstractMpAction object

Specified by:
setEnabled in interface MpAction
Parameters:
b - The new enabled value

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Access method for an one to n association.

Specified by:
addPropertyChangeListener in interface MpAction
Parameters:
listener - The object added.

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
removePropertyChangeListener in interface MpAction
Parameters:
listener - No description provided