Class UndoRedoListenerAdapter
- java.lang.Object
-
- org.eclipse.nebula.widgets.ganttchart.undoredo.UndoRedoListenerAdapter
-
- All Implemented Interfaces:
IUndoRedoListener
public class UndoRedoListenerAdapter extends java.lang.Object implements IUndoRedoListener
Basic implementation ofIUndoRedoListener.
-
-
Constructor Summary
Constructors Constructor Description UndoRedoListenerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcanRedoChanged(boolean canRedo)Notified when the undo/redo state has changed.voidcanUndoChanged(boolean canUndo)Notified when the undo/redo state has changed.voidcommandRedone(IUndoRedoCommand command)Notified when a redo has taken place.voidcommandUndone(IUndoRedoCommand command)Notified when an undo has taken place.voidundoableCommandAdded(IUndoRedoCommand command)When a command is added to the stack that can be undone this is called.
-
-
-
Method Detail
-
canRedoChanged
public void canRedoChanged(boolean canRedo)
Description copied from interface:IUndoRedoListenerNotified when the undo/redo state has changed.- Specified by:
canRedoChangedin interfaceIUndoRedoListener- Parameters:
canRedo- Whether it is possible to redo or not
-
canUndoChanged
public void canUndoChanged(boolean canUndo)
Description copied from interface:IUndoRedoListenerNotified when the undo/redo state has changed.- Specified by:
canUndoChangedin interfaceIUndoRedoListener
-
commandRedone
public void commandRedone(IUndoRedoCommand command)
Description copied from interface:IUndoRedoListenerNotified when a redo has taken place.- Specified by:
commandRedonein interfaceIUndoRedoListener- Parameters:
command- Command that was redone
-
commandUndone
public void commandUndone(IUndoRedoCommand command)
Description copied from interface:IUndoRedoListenerNotified when an undo has taken place.- Specified by:
commandUndonein interfaceIUndoRedoListener- Parameters:
command- Command that was undone
-
undoableCommandAdded
public void undoableCommandAdded(IUndoRedoCommand command)
Description copied from interface:IUndoRedoListenerWhen a command is added to the stack that can be undone this is called. DO NOT call undo() or redo() directly on this command, always go via theGanttUndoRedoManager.- Specified by:
undoableCommandAddedin interfaceIUndoRedoListener- Parameters:
command- Command added to stack- See Also:
GanttChart.getUndoRedoManager()
-
-