Extension SDK

oracle.javatools.editor
Class BasicEditorKit.DefaultKeyTypedAction

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--javax.swing.text.TextAction
              |
              +--oracle.javatools.editor.BasicAction
                    |
                    +--oracle.javatools.editor.BasicEditorKit.DefaultKeyTypedAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
Enclosing class:
BasicEditorKit

public static class BasicEditorKit.DefaultKeyTypedAction
extends BasicAction

Replacement for the normal key typed action to add support for insert/overwrite mode with the caret.

See Also:
Serialized Form

Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
BasicEditorKit.DefaultKeyTypedAction()
          Creates this object with the appropriate action name.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          The operation to perform when this action is triggered.
 void actionPerformed(java.awt.event.ActionEvent event, BasicEditorPane editor, BasicDocument document)
          The operation to perform when this action is triggered.
 
Methods inherited from class oracle.javatools.editor.BasicAction
beep, buildIndent, getFontHeight, getLastAction, getMagicCaretPosition, getName, getSmartIndentProvider, getSpaces, getTab, getTabs, getTabSizeProperty, getUseAutoIndentProperty, getUseTabsProperty, getVisibleRect, isEditable, setMagicCaretPosition, showMessage, skipLeadingIndent
 
Methods inherited from class javax.swing.text.TextAction
augmentList, getFocusedComponent, getTextComponent
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicEditorKit.DefaultKeyTypedAction

public BasicEditorKit.DefaultKeyTypedAction()
Creates this object with the appropriate action name.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
The operation to perform when this action is triggered.
Overrides:
actionPerformed in class BasicAction
Parameters:
event - the action event

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event,
                            BasicEditorPane editor,
                            BasicDocument document)
The operation to perform when this action is triggered.
Overrides:
actionPerformed in class BasicAction
Parameters:
event - the action event
editor - the editor his action was invoked in
document - the document associated with the editor

Extension SDK