public class EventDeleteCommand extends java.lang.Object implements IUndoRedoCommand
Note that this command is not added internally. But you are able to
create and add this type of command within your custom
IGanttEventListener.eventsDeleteRequest(java.util.List, org.eclipse.swt.events.MouseEvent)
| Constructor and Description |
|---|
EventDeleteCommand(GanttEvent event,
GanttSection section,
int index)
Creates a new undoable/redoable delete Event.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Called when the event is about to be destroyed.
|
GanttEvent |
getEvent() |
int |
getIndex() |
GanttSection |
getSection() |
void |
redo()
Redoes an event in the chart.
|
void |
setEvent(GanttEvent event) |
void |
setIndex(int index) |
void |
setSection(GanttSection section) |
java.lang.String |
toString() |
void |
undo()
Undoes an event in the chart.
|
public EventDeleteCommand(GanttEvent event, GanttSection section, int index)
event - GanttEvent being deletedsection - GanttSection index (of all GanttSections) prior to deleteindex - Index of event in GanttSection section prior to deletepublic void undo()
IUndoRedoCommandundo in interface IUndoRedoCommandpublic void redo()
IUndoRedoCommandredo in interface IUndoRedoCommandpublic void dispose()
IUndoRedoCommanddispose in interface IUndoRedoCommandpublic GanttEvent getEvent()
public void setEvent(GanttEvent event)
public int getIndex()
public void setIndex(int index)
public GanttSection getSection()
public void setSection(GanttSection section)
public java.lang.String toString()
toString in class java.lang.Object