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

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

public static class EmacsKeyBindings.CapitalizeWordAction
extends TextAction

This action capitalizes the next word on the right side of the caret.

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.CapitalizeWordAction(String nm)
           
 
Method Summary
 void actionPerformed(ActionEvent event)
          At first the same code as in EmacsKeyBindings.DowncaseWordAction is performed, to ensure the word is in lower case, then the first letter is capialized.
 
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.CapitalizeWordAction

public EmacsKeyBindings.CapitalizeWordAction(String nm)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
At first the same code as in EmacsKeyBindings.DowncaseWordAction is performed, to ensure the word is in lower case, then the first letter is capialized.



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