|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
javax.swing.AbstractAction
javax.swing.text.TextAction
oracle.javatools.editor.BasicAction
oracle.javatools.editor.EmacsAction
oracle.javatools.editor.BasicEditorKit.EmacsKillTypeAction
The EmacsKillTypeAction
is a base action for all Emacs kill-type action implementations. It implements the functionality for tracking whether the last action was a kill, if focus has left the editor, or if navigation occurred via the mouse.
Nested Class Summary |
Nested classes inherited from class oracle.javatools.editor.EmacsAction |
EmacsAction.Tracker |
Field Summary |
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.EmacsKillTypeAction(java.lang.String actionName) Constructs this object with the appropriate action name. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent event, BasicEditorPane editor, BasicDocument document) The operation to perform when this action is triggered. |
protected abstract boolean |
killPerformed(java.awt.event.ActionEvent event, BasicEditorPane editor, BasicDocument document, boolean lastActionWasKill) The kill operation to perform when this action is triggered. |
Methods inherited from class oracle.javatools.editor.EmacsAction |
addKillRing, appendKillRing, getClipboardText, getMark, getSystemClipboard, popKillRing, prependKillRing, removeMark, setClipboardText, setMark, showEndBufferMessage, showMarkNotSetMessage, showMarkSetMessage, showNextKillAppendMessage, showPreviousNotYankMessage, showReadOnlyMessage, yankKillRing |
Methods inherited from class oracle.javatools.editor.BasicAction |
actionPerformed, 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, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BasicEditorKit.EmacsKillTypeAction(java.lang.String actionName)
Method Detail |
protected abstract boolean killPerformed(java.awt.event.ActionEvent event, BasicEditorPane editor, BasicDocument document, boolean lastActionWasKill)
event
- the action eventeditor
- the editor his action was invoked indocument
- the document associated with the editorlastActionWasKill
- whether the previous action was a killpublic final void actionPerformed(java.awt.event.ActionEvent event, BasicEditorPane editor, BasicDocument document)
actionPerformed
in class EmacsAction
event
- the action eventeditor
- the editor his action was invoked indocument
- the document associated with the editor
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.