net.sf.doolin.gui.edit
Interface GUIEditManager

All Known Implementing Classes:
DefaultGUIEditManager

public interface GUIEditManager

Manager for a list of tasks that can be done and undone.

Author:
Damien Coraboeuf

Method Summary
 void addEdit(GUIEdit record)
          Adds a new task.
 boolean canRedo()
          Checks if some tasks are available for doing again.
 boolean canUndo()
          Checks if some tasks are available for undoing.
 void clear()
          Clears all tasks
 String getRedoDisplayName()
          Gets the display name for the action that can be redone.
 String getUndoDisplayName()
          Gets the display name for the action that can be undone.
 void redo()
          Redoes the next available task (if possible).
 void undo()
          Undoes the next available task (if possible).
 

Method Detail

addEdit

void addEdit(GUIEdit record)
Adds a new task.

Parameters:
record - Task to record

canUndo

boolean canUndo()
Checks if some tasks are available for undoing.

Returns:
true if some tasks are available for undoing.

canRedo

boolean canRedo()
Checks if some tasks are available for doing again.

Returns:
true if some tasks are available for doing again.

undo

void undo()
Undoes the next available task (if possible).


redo

void redo()
Redoes the next available task (if possible).


getRedoDisplayName

String getRedoDisplayName()
Gets the display name for the action that can be redone.

Returns:
Display name

getUndoDisplayName

String getUndoDisplayName()
Gets the display name for the action that can be undone.

Returns:
Display name

clear

void clear()
Clears all tasks



Copyright © 2011. All Rights Reserved.