Package hipp.com.wappedidpadpro2
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
do undo actions
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.text.Documentdocprivate WAppRedoActionredoActionprivate javax.swing.undo.UndoManagerundoprivate javax.swing.JComponent[]undoCo -
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 voidactionPerformed(java.awt.event.ActionEvent e)voidsetRedoAction(WAppRedoAction rA)protected voidupdateUndoState()Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
undo
private javax.swing.undo.UndoManager undo -
undoCo
private javax.swing.JComponent[] undoCo -
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.UndoManagerb- javax.swing.JComponent[]d- javax.swing.text.Document
-
-
Method Details
-
setRedoAction
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
updateUndoState
protected void updateUndoState()
-