public static class BaseKit.DeleteCharAction extends BaseAction
Modifier and Type | Field and Description |
---|---|
protected boolean |
nextChar
Deprecated.
|
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
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
DeleteCharAction(String nm,
boolean nextChar)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent evt,
JTextComponent target)
Deprecated.
The target method that performs the real action functionality.
|
protected void |
charBackspaced(BaseDocument doc,
int dotPos,
Caret caret,
char ch)
Deprecated.
Please use Typing Hooks instead, for details see
Editor Library 2.
|
protected void |
charDeleted(BaseDocument doc,
int dotPos,
Caret caret,
char ch)
Deprecated.
Please use Typing Hooks instead, for details see
Editor Library 2.
|
protected Class |
getShortDescriptionBundleClass()
Get the class in a package where resource bundle for localization
of the short description of this action resides.
|
actionNameUpdate, actionPerformed, asynchonous, createDefaultValue, findValue, getDefaultShortDescription, getPopupMenuItem, getPopupMenuText, getValue, putValue, updateComponent, updateComponent
augmentList, getFocusedComponent, getTextComponent
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, isEnabled, removePropertyChangeListener, setEnabled
public DeleteCharAction(String nm, boolean nextChar)
public void actionPerformed(ActionEvent evt, JTextComponent target)
BaseAction
actionPerformed
in class BaseAction
evt
- action event describing the action that occuredtarget
- target component where the action occured. It's retrieved
by the TextAction.getTextComponent(evt).protected void charBackspaced(BaseDocument doc, int dotPos, Caret caret, char ch) throws BadLocationException
BadLocationException
protected void charDeleted(BaseDocument doc, int dotPos, Caret caret, char ch) throws BadLocationException
BadLocationException
protected Class getShortDescriptionBundleClass()
BaseAction
getShortDescriptionBundleClass
in class BaseAction