oracle.javatools.editor
Class BasicEditorKit.EmacsKillRegionAction
java.lang.Object
javax.swing.AbstractAction
javax.swing.text.TextAction
oracle.javatools.editor.BasicAction
oracle.javatools.editor.EmacsAction
oracle.javatools.editor.BasicEditorKit.EmacsKillTypeAction
oracle.javatools.editor.BasicEditorKit.EmacsKillRegionAction
- 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.EmacsKillRegionAction
- extends BasicEditorKit.EmacsKillTypeAction
The EmacsKillRegionAction
implementation of the
action for killing the region (or doing a kill-ring-save) between
the point and mark and adding or appending it to the Emacs kill
ring.
- 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 |
Method Summary |
protected 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 |
BasicEditorKit.EmacsKillRegionAction
public BasicEditorKit.EmacsKillRegionAction(java.lang.String actionName,
boolean save)
- Constructs this object with the appropriate action name.
killPerformed
protected boolean killPerformed(java.awt.event.ActionEvent event,
BasicEditorPane editor,
BasicDocument document,
boolean lastActionWasKill)
- The kill operation to perform when this action is triggered.
This should return true if the kill operation was performed
(i.e., not end of buffer), false otherwise.
- Specified by:
killPerformed
in class BasicEditorKit.EmacsKillTypeAction
- Parameters:
event
- the action eventeditor
- the editor his action was invoked indocument
- the document associated with the editorlastActionWasKill
- whether the previous action was a kill
- Returns:
- true if kill was performed, false otherwise
Copyright © 1997, 2004, Oracle. All rights reserved.