| |
|
| javax.swing.text.TextAction org.netbeans.editor.BaseAction
BaseAction | abstract public class BaseAction extends TextAction (Code) | | This is the parent of majority of the actions. It implements the necessary
resetting depending of what is required by constructor of target action. The
other thing implemented here is macro recording.
author: Miloslav Metelka version: 1.00 |
ABBREV_RESET | final public static int ABBREV_RESET(Code) | | Reset abbreviation accounting to empty string
|
CLEAR_STATUS_TEXT | final public static int CLEAR_STATUS_TEXT(Code) | | Clear status bar text
|
LOCALE_DESC_PREFIX | final public static String LOCALE_DESC_PREFIX(Code) | | Prefix for the name of the key for description in locale support
|
LOCALE_POPUP_PREFIX | final public static String LOCALE_POPUP_PREFIX(Code) | | Prefix for the name of the key for popup description in locale support
|
MAGIC_POSITION_RESET | final public static int MAGIC_POSITION_RESET(Code) | | Reset magic caret position
|
NO_RECORDING | final public static int NO_RECORDING(Code) | | The action will not be recorded if in macro recording
|
POPUP_MENU_TEXT | final public static String POPUP_MENU_TEXT(Code) | | Text of the menu item in popup menu for this action
|
SAVE_POSITION | final public static int SAVE_POSITION(Code) | | Save current position in the jump list
|
SELECTION_REMOVE | final public static int SELECTION_REMOVE(Code) | | Remove the selected text at the action begining
|
UNDO_MERGE_RESET | final public static int UNDO_MERGE_RESET(Code) | | Prevents adding the new undoable edit to the old one when the next
document change occurs.
|
WORD_MATCH_RESET | final public static int WORD_MATCH_RESET(Code) | | Reset word-match table
|
serialVersionUID | final static long serialVersionUID(Code) | | |
updateMask | protected int updateMask(Code) | | Bit mask of what should be updated when the action is performed before
the action's real task is invoked.
|
BaseAction | public BaseAction(String name, int updateMask)(Code) | | |
actionPerformed | final public void actionPerformed(ActionEvent evt)(Code) | | This method is made final here as there's an important processing that
must be done before the real action functionality is performed. It can
include the following: 1. Updating of the target component depending on
the update mask given in action constructor. 2. Possible macro recoding
when the macro recording is turned on. The real action functionality
should be done in the method actionPerformed(ActionEvent evt,
JTextComponent target) which must be redefined by the target action.
|
actionPerformed | abstract public void actionPerformed(ActionEvent evt, JTextComponent target)(Code) | | The target method that performs the real action functionality.
Parameters: evt - action event describing the action that occured Parameters: target - target component where the action occured. It's retrieved bythe TextAction.getTextComponent(evt). |
settingsChange | protected void settingsChange(SettingsChangeEvent evt, Class kitClass)(Code) | | This method is called once after the action is constructed and then each
time the settings are changed.
Parameters: evt - event describing the changed setting name. It's null if it'scalled after the action construction. Parameters: kitClass - class of the kit that created the actions |
updateComponent | public void updateComponent(JTextComponent target)(Code) | | Update the component according to the update mask specified in the
constructor of the action.
Parameters: target - target component to be updated. |
updateComponent | public void updateComponent(JTextComponent target, int updateMask)(Code) | | Update the component according to the given update mask
Parameters: target - target component to be updated. Parameters: updateMask - mask that specifies what will be updated |
|
|
|