Class WAppUndoAction

java.lang.Object
javax.swing.AbstractAction
hipp.com.wappedidpadpro2.WAppUndoAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class WAppUndoAction
extends javax.swing.AbstractAction
implements java.awt.event.ActionListener
WAppUndoAction
do undo actions
See Also:
Serialized Form
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private javax.swing.text.Document doc  
    private WAppRedoAction redoAction  
    private javax.swing.undo.UndoManager undo  
    private javax.swing.JComponent[] undoCo  

    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

    Constructors 
    Constructor Description
    WAppUndoAction​(javax.swing.undo.UndoManager u, javax.swing.JComponent[] b, javax.swing.text.Document d)  
  • Method Summary

    Modifier and Type Method Description
    void actionPerformed​(java.awt.event.ActionEvent e)  
    void setRedoAction​(WAppRedoAction rA)  
    protected void updateUndoState()  

    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

    Methods inherited from interface javax.swing.Action

    accept
  • Field Details

    • undo

      private javax.swing.undo.UndoManager undo
    • undoCo

      private javax.swing.JComponent[] undoCo
    • redoAction

      private WAppRedoAction redoAction
    • doc

      private javax.swing.text.Document doc
  • Constructor Details

    • WAppUndoAction

      public WAppUndoAction​(javax.swing.undo.UndoManager u, javax.swing.JComponent[] b, javax.swing.text.Document d)
      Parameters:
      u - javax.swing.undo.UndoManager
      b - javax.swing.JComponent[]
      d - javax.swing.text.Document
  • Method Details