Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

oracle.javatools.editor
Class BasicEditorKit.EmacsKillWordAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by javax.swing.text.TextAction
          extended by oracle.javatools.editor.BasicAction
              extended by oracle.javatools.editor.EmacsAction
                  extended by oracle.javatools.editor.EmacsWriteAction
                      extended by oracle.javatools.editor.BasicEditorKit.EmacsKillTypeAction
                          extended by oracle.javatools.editor.BasicEditorKit.EmacsKillWordAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Enclosing class:
BasicEditorKit

public static class BasicEditorKit.EmacsKillWordAction
extends BasicEditorKit.EmacsKillTypeAction

The EmacsKillWordAction implementation of the action for killing until the next start of a word and adding or appending it to the Emacs kill ring.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces 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, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
BasicEditorKit.EmacsKillWordAction()
          Constructs this object with the appropriate action name.
 
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.BasicEditorKit.EmacsKillTypeAction
actionPerformed
 
Methods inherited from class oracle.javatools.editor.EmacsWriteAction
lock, unlock
 
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, getIndentSizeProperty, 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

BasicEditorKit.EmacsKillWordAction

public BasicEditorKit.EmacsKillWordAction()
Constructs this object with the appropriate action name.

Method Detail

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 event
editor - the editor his action was invoked in
document - the document associated with the editor
lastActionWasKill - whether the previous action was a kill
Returns:
true if kill was performed, false otherwise

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

Copyright © 1997, 2010, Oracle. All rights reserved.