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

Quick Search    Search Deep

abbot.editor.actions
Class EditorAction  view EditorAction download EditorAction.java

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byabbot.editor.actions.EditorAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, abbot.editor.EditorConstants, java.util.EventListener, abbot.editor.i18n.Resources, java.io.Serializable, abbot.editor.i18n.Strings
Direct Known Subclasses:
EditorToggleAction

public class EditorAction
extends javax.swing.AbstractAction
implements abbot.editor.EditorConstants

Encapsulate GUI attributes for an editor action.


Nested Class Summary
 
Nested classes inherited from class abbot.editor.EditorConstants
abbot.editor.EditorConstants.Accelerator
 
Nested classes inherited from class abbot.editor.i18n.Resources
abbot.editor.i18n.Resources.ResourceLoader
 
Field Summary
private  java.awt.event.ActionListener al
           
private  int id
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface abbot.editor.EditorConstants
ABBOT_IMAGE_DIR, LARGE_ICON, menuShortcutMask, menuShortcutString, MI_ABOUT, MI_ACTION_COUNT, MI_ASSERT_DYNAMIC, MI_CAPTURE_DYNAMIC, MI_CLEAR, MI_CLOSE, MI_COUNT, MI_CUT, MI_DELETE, MI_DUPLICATE, MI_EXIT, MI_FORK, MI_GETVMARGS, MI_INSERT_CALL, MI_INSERT_COMMENT, MI_INSERT_COUNT, MI_INSERT_DYNAMIC, MI_INSERT_FIRST, MI_INSERT_LAST, MI_INSERT_LAUNCH, MI_INSERT_SCRIPT, MI_INSERT_SEQUENCE, MI_INSERT_TERMINATE, MI_LAUNCH, MI_MOVE_DOWN, MI_MOVE_UP, MI_NEW, MI_OPEN, MI_RENAME, MI_RUN, MI_RUNTO, MI_SAVE, MI_SAVE_AS, MI_SELECT_TESTSUITE, MI_SLOW, MI_STOP_ON_ERROR, MI_STOP_ON_FAILURE, MI_TERMINATE, MI_TOGGLE_FIRST, MI_TOGGLE_LAST, MI_WAIT_DYNAMIC
 
Fields inherited from interface abbot.editor.i18n.Strings
FMT_AssertProperty, FMT_AssertPropertyTip, FMT_ComponentReference, FMT_ComponentReferenceX, FMT_Dialog, FMT_EditingScript, FMT_Error, FMT_Failure, FMT_FixtureDuplicated, FMT_InStep, FMT_RecorderCanceledX, FMT_Running, FMT_RunningStep, FMT_Saved, FMT_Saving, FMT_ScriptRename, FMT_ScriptSaved, FMT_Title, FMT_Tooltip, FMT_WaitProperty, FMT_Warning
 
Fields inherited from interface abbot.editor.i18n.Resources
bundle, STRINGS_BUNDLE
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
EditorAction(int id, java.lang.String base, java.awt.event.ActionListener al)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ev)
          This method is invoked when an action occurs.
 javax.swing.KeyStroke getAcceleratorKey()
           
 javax.swing.ImageIcon getIcon(java.lang.String name, int size)
          Returns the Icon associated with the given name from the available resources.
private static java.lang.String getString(java.lang.String key)
          Obtain the resource for the given key, or null if it does not exist.
 
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
 

Field Detail

al

private java.awt.event.ActionListener al

id

private int id
Constructor Detail

EditorAction

public EditorAction(int id,
                    java.lang.String base,
                    java.awt.event.ActionListener al)
Method Detail

getString

private static java.lang.String getString(java.lang.String key)
Obtain the resource for the given key, or null if it does not exist.


getAcceleratorKey

public javax.swing.KeyStroke getAcceleratorKey()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ev)
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

getIcon

public javax.swing.ImageIcon getIcon(java.lang.String name,
                                     int size)
Returns the Icon associated with the given name from the available resources.