protected class CommandStackDialog.UndoRedoAction extends javax.swing.AbstractAction implements CommandStackDialog.IEnabledStateUpdating
Modifier and Type | Field and Description |
---|---|
private javax.swing.JTree |
tree |
private CommandStackDialog.UndoRedoType |
type |
Constructor and Description |
---|
UndoRedoAction(CommandStackDialog.UndoRedoType type)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
updateEnabledState() |
private final CommandStackDialog.UndoRedoType type
private final javax.swing.JTree tree
public UndoRedoAction(CommandStackDialog.UndoRedoType type)
type
- decide whether it is an undo action or a redo actionpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void updateEnabledState()
updateEnabledState
in interface CommandStackDialog.IEnabledStateUpdating