T
- the type of the Gantt chartpublic class UndoAction<T extends AbstractGanttChart> extends AbstractGanttChartAction<T> implements ICommandStackListener, PropertyChangeListener
ICommandStack.undo(com.dlsc.flexgantt.command.IProgressMonitor)
,
ICommandStack.isUndoable()
,
Serialized FormganttChart
changeSupport, enabled
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 and Description |
---|
UndoAction(T gc)
Constructs a new action.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
void |
commandStackChanged(CommandStackEvent event)
Gets called whenever the command stack changed.
|
void |
propertyChange(PropertyChangeEvent evt) |
void |
setGanttChart(T gc)
Sets a new Gantt chart to be used for performing the action.
|
findFocusedTable, getGanttChart
getToolTipText, setToolTipText
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public UndoAction(T gc)
gc
- the Gantt chart on which to invoke the actionpublic void setGanttChart(T gc)
AbstractGanttChartAction
setGanttChart
in class AbstractGanttChartAction<T extends AbstractGanttChart>
gc
- the Gantt chart on which to perform the actionpublic void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void commandStackChanged(CommandStackEvent event)
ICommandStackListener
commandStackChanged
in interface ICommandStackListener
event
- the event issued by the command stackpublic void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.