当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
ExtKit.PrefixMakerAction (Editor Library) - NetBeans API Javadoc (Current Development Version)
org.netbeans.editor.ext
Class ExtKit.PrefixMakerAction
java.lang.Object
javax.swing.AbstractAction
javax.swing.text.TextAction
org.netbeans.editor.BaseAction
org.netbeans.editor.ext.ExtKit.PrefixMakerAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
- Enclosing class:
- ExtKit
public static class ExtKit.PrefixMakerAction
- extends BaseAction
Prefix maker adds the prefix before the identifier under cursor.
The prefix is not added if it's already present. The prefix to be
added is specified in the constructor of the action together
with the prefix group. If there's already any prefix from the prefix
group at the begining of the identifier, that prefix is replaced
by the actual prefix.
- See Also:
- Serialized Form
Fields inherited from class org.netbeans.editor.BaseAction |
ABBREV_RESET, CLEAR_STATUS_TEXT, ICON_RESOURCE_PROPERTY, LOCALE_DESC_PREFIX, LOCALE_POPUP_PREFIX, MAGIC_POSITION_RESET, NO_KEYBINDING, NO_RECORDING, POPUP_MENU_TEXT, SAVE_POSITION, SELECTION_REMOVE, UNDO_MERGE_RESET, updateMask, WORD_MATCH_RESET |
Methods inherited from class org.netbeans.editor.BaseAction |
actionPerformed, asynchonous, createDefaultValue, findValue, getDefaultShortDescription, getPopupMenuItem, getPopupMenuText, getValue, settingsChange, updateComponent, updateComponent |
ExtKit.PrefixMakerAction
public ExtKit.PrefixMakerAction(String name,
String prefix,
String[] prefixGroup)
actionPerformed
public void actionPerformed(ActionEvent evt,
JTextComponent target)
- Description copied from class:
BaseAction
- The target method that performs the real action functionality.
- Specified by:
actionPerformed
in class BaseAction
- Parameters:
evt
- action event describing the action that occuredtarget
- target component where the action occured. It's retrieved
by the TextAction.getTextComponent(evt).