|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.cockpit.modeler.undo.ModelerUndoable
public class ModelerUndoable
'Brute force' implemenation of an undoable object for the process modeler. This undoable simply contains a before and after operation image (clone) of the process. This is the easy way because we don't need to thing about how to revert an operation, but it's definately memory-consuming.
| Constructor Summary | |
|---|---|
ModelerUndoable(Modeler modeler)
Default constructor. |
|
| Method Summary | |
|---|---|
protected ProcessItem |
copyProcess(ProcessItem process)
Copies a process. |
java.lang.String |
getDisplayName()
Gets the display name. |
boolean |
isRedoable()
Returns true if the action can be redone. |
boolean |
redo()
Redo the action. |
protected void |
restoreSelection(java.util.List selectionQualifiers)
Restores the current selection. |
protected java.util.List |
saveSelection()
Saves the current selection of the associated modeler. |
void |
setDisplayName(java.lang.String displayName)
Sets the display name. |
boolean |
undo()
Undo the last Action. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelerUndoable(Modeler modeler)
modeler - Modeler| Method Detail |
|---|
public boolean undo()
Undoable
undo in interface UndoableUndoable.undo()public boolean isRedoable()
Undoable
isRedoable in interface UndoableUndoable.isRedoable()public boolean redo()
Undoable
redo in interface UndoableUndoable.redo()public java.lang.String getDisplayName()
getDisplayName in interface Undoablepublic void setDisplayName(java.lang.String displayName)
protected ProcessItem copyProcess(ProcessItem process)
process - Process to clone
protected java.util.List saveSelection()
ModelQualifier objects denoting the selected elements or null if no elements were selectedprotected void restoreSelection(java.util.List selectionQualifiers)
selectionQualifiers - A list of ModelQualifier objects denoting the selected elements or null if no elements were selected
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||