org.fife.rtext.actions
Class ToggleTextModeAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byjavax.swing.text.TextAction
          extended byorg.fife.ui.rtextarea.RecordableTextAction
              extended byorg.fife.rtext.actions.ToggleTextModeAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class ToggleTextModeAction
extends RecordableTextAction

Action that toggles the text mode (insert vs. overwrite) for all open text editors. This class extends RecordableTextAction so that it it is recorded in macros.

Version:
1.0
Author:
Robert Futrell
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
ToggleTextModeAction(RText rtext)
          Constructor.
 
Method Summary
 void actionPerformedImpl(java.awt.event.ActionEvent e, RTextArea textArea)
          
 java.lang.String getMacroID()
          
 
Methods inherited from class org.fife.ui.rtextarea.RecordableTextAction
actionPerformed, getAccelerator, getDescription, getIcon, getMnemonic, getName, isRecordable, setAccelerator, setMnemonic, setMnemonic, setName, setProperties, setRecordable, setShortDescription
 
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

ToggleTextModeAction

public ToggleTextModeAction(RText rtext)
Constructor.

Parameters:
rtext - The parent application.
Method Detail

actionPerformedImpl

public void actionPerformedImpl(java.awt.event.ActionEvent e,
                                RTextArea textArea)


getMacroID

public java.lang.String getMacroID()