|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.edit.DefaultGUIEditManager
public class DefaultGUIEditManager
Default implementation for the GUIEditManager. It maintains a dual
list of done and undone tasks.
| Constructor Summary | |
|---|---|
DefaultGUIEditManager()
|
|
| 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 |
protected void |
fireUpdated()
Publishes to the bus that the state of tasks has changed |
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). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultGUIEditManager()
| Method Detail |
|---|
public void addEdit(GUIEdit record)
GUIEditManager
addEdit in interface GUIEditManagerrecord - Task to recordpublic boolean canRedo()
GUIEditManager
canRedo in interface GUIEditManagertrue if some tasks are available for doing again.public boolean canUndo()
GUIEditManager
canUndo in interface GUIEditManagertrue if some tasks are available for undoing.public String getUndoDisplayName()
GUIEditManager
getUndoDisplayName in interface GUIEditManagerpublic String getRedoDisplayName()
GUIEditManager
getRedoDisplayName in interface GUIEditManagerpublic void undo()
GUIEditManager
undo in interface GUIEditManagerpublic void redo()
GUIEditManager
redo in interface GUIEditManagerpublic void clear()
GUIEditManager
clear in interface GUIEditManagerprotected void fireUpdated()
GUIEditManagerUpdateMessage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||