org.xnap.commons.gui.shortcut
Class EmacsKeyBindings.SetMarkCommandAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by javax.swing.text.TextAction
          extended by org.xnap.commons.gui.shortcut.EmacsKeyBindings.SetMarkCommandAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
EmacsKeyBindings

public static class EmacsKeyBindings.SetMarkCommandAction
extends TextAction

This action sets a beginning mark for a selection.

See Also:
Serialized Form

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
EmacsKeyBindings.SetMarkCommandAction(String nm)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
static int getCaretPosition()
           
static boolean isMarked(JTextComponent jt)
           
static void reset()
           
 
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

EmacsKeyBindings.SetMarkCommandAction

public EmacsKeyBindings.SetMarkCommandAction(String nm)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

isMarked

public static boolean isMarked(JTextComponent jt)

reset

public static void reset()

getCaretPosition

public static int getCaretPosition()


Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.