com.dlsc.flexgantt.swing.action.gantt
Class RedoAction<T extends AbstractGanttChart>
java.lang.Object
javax.swing.AbstractAction
com.dlsc.flexgantt.swing.action.AbstractFlexGanttAction
com.dlsc.flexgantt.swing.action.gantt.AbstractGanttChartAction<T>
com.dlsc.flexgantt.swing.action.gantt.RedoAction<T>
- Type Parameters:
T
- the type of the Gantt chart
- All Implemented Interfaces:
- ICommandStackListener, java.awt.event.ActionListener, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
- Direct Known Subclasses:
- RedoActionLabeled
public class RedoAction<T extends AbstractGanttChart>
- extends AbstractGanttChartAction<T>
- implements ICommandStackListener, java.beans.PropertyChangeListener
An action that will redo the last command that was undone.
- Since:
- 1.0
- Author:
- Dirk Lemmermann
- See Also:
ICommandStack.redo(com.dlsc.flexgantt.command.IProgressMonitor)
,
ICommandStack.isRedoable()
,
Serialized Form
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 |
RedoAction(T gc)
Constructs a new action. |
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 |
RedoAction
public RedoAction(T gc)
- Constructs a new action.
- Parameters:
gc
- the Gantt chart on which to invoke the action- Since:
- 1.0
setGanttChart
public void setGanttChart(T gc)
- Description copied from class:
AbstractGanttChartAction
- Sets a new Gantt chart to be used for performing the action.
- Overrides:
setGanttChart
in class AbstractGanttChartAction<T extends AbstractGanttChart>
- Parameters:
gc
- the Gantt chart on which to perform the action
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
commandStackChanged
public void commandStackChanged(CommandStackEvent event)
- Description copied from interface:
ICommandStackListener
- Gets called whenever the command stack changed. The event object that is
passed to this method contains information about the type of event and a
reference to the command that caused the event.
- Specified by:
commandStackChanged
in interface ICommandStackListener
- Parameters:
event
- the event issued by the command stack
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChange
in interface java.beans.PropertyChangeListener