java.lang.Object
javax.swing.AbstractAction
abbot.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 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 |
| 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 |
al
private java.awt.event.ActionListener al
id
private int id
EditorAction
public EditorAction(int id,
java.lang.String base,
java.awt.event.ActionListener al)
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.