org.xnap.gui.util
Class EmacsKeyBindings.YankAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by javax.swing.text.TextAction
          extended by org.xnap.gui.util.EmacsKeyBindings.YankAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Enclosing class:
EmacsKeyBindings

public static class EmacsKeyBindings.YankAction
extends javax.swing.text.TextAction

Pastes text from killring.

See Also:
Serialized Form

Field Summary
static int end
           
static java.util.LinkedList killring
           
static int start
           
 
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
EmacsKeyBindings.YankAction(java.lang.String nm)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
           
static void add(java.lang.String item)
          Uniquely adds item to killring, i.e. if item is already in killring, it's moved to the front, otherwise it's added as first element.
static java.lang.String getNext(java.lang.String predecessor)
          Returns killring successor of item and adds item to killring.
 
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
 

Field Detail

killring

public static java.util.LinkedList killring

start

public static int start

end

public static int end
Constructor Detail

EmacsKeyBindings.YankAction

public EmacsKeyBindings.YankAction(java.lang.String nm)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)

add

public static void add(java.lang.String item)
Uniquely adds item to killring, i.e. if item is already in killring, it's moved to the front, otherwise it's added as first element.


getNext

public static java.lang.String getNext(java.lang.String predecessor)
Returns killring successor of item and adds item to killring.

Parameters:
predecessor -
Returns:
Returns first item if item == null.


Copyright © 2001-2005 XNap Team. All Rights Reserved.