Package com.jsql.view.swing.text.action
Class AbstractCharAction
java.lang.Object
javax.swing.AbstractAction
javax.swing.text.TextAction
com.jsql.view.swing.text.action.AbstractCharAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
- Direct Known Subclasses:
DeleteNextCharAction
,DeletePrevCharAction
Action to cancel Beep sound when deleting last character.
Used on TextPane and TextArea.
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
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 Summary
ModifierConstructorDescriptionprotected
AbstractCharAction
(String deleteAction) Create this object with the appropriate identifier. -
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerformed
(ActionEvent event) The operation to perform when this action is triggered.protected abstract void
Methods inherited from class javax.swing.text.TextAction
augmentList, getFocusedComponent, getTextComponent
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
AbstractCharAction
Create this object with the appropriate identifier.
-
-
Method Details
-
delete
- Throws:
BadLocationException
-
actionPerformed
The operation to perform when this action is triggered.
-