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 FormganttChartchangeSupport, enabledACCELERATOR_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, getGanttChartgetToolTipText, setToolTipTextaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic UndoAction(T gc)
gc - the Gantt chart on which to invoke the actionpublic void setGanttChart(T gc)
AbstractGanttChartActionsetGanttChart in class AbstractGanttChartAction<T extends AbstractGanttChart>gc - the Gantt chart on which to perform the actionpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void commandStackChanged(CommandStackEvent event)
ICommandStackListenercommandStackChanged in interface ICommandStackListenerevent - the event issued by the command stackpublic void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerCopyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.