public static class DefaultEditorKit.DefaultKeyTypedAction extends TextAction
If the event doesn't get filtered, it will try to insert
content into the text editor. The content is fetched
from the command string of the ActionEvent. The text
entry is done through the replaceSelection
method on the target text component. This is the
action that will be fired for most text entry tasks.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans
package.
Please see XMLEncoder
.
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 |
---|
DefaultEditorKit.DefaultKeyTypedAction()
Creates this object with the appropriate identifier.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
The operation to perform when this action is triggered.
|
augmentList, getFocusedComponent, getTextComponent
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public DefaultEditorKit.DefaultKeyTypedAction()
public void actionPerformed(ActionEvent e)
e
- the action event Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2012, Oracle and/or its affiliates. All rights reserved.