|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
templates.diagram.actions.AbstractDiagramUndoableEdit
templates.diagram.actions.DiagramUndoableEdits.SetControllabilityEdit
public static class DiagramUndoableEdits.SetControllabilityEdit
Edit which does and undoes setting the controllability of a
DESEvent in the FSAModel.
| Field Summary | |
|---|---|
protected long |
eventID
The id of the DESEvent whose controllability has to be set. |
protected ides.api.model.fsa.FSAModel |
model
The FSAModel which contains the DESEvent whose
controllability should be set. |
protected boolean |
newControllable
The new controllability setting of the event. |
protected boolean |
oldControllable
The old controllability setting of the event. |
| Fields inherited from class templates.diagram.actions.AbstractDiagramUndoableEdit |
|---|
usePluralDescription |
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
RedoName, UndoName |
| Constructor Summary | |
|---|---|
DiagramUndoableEdits.SetControllabilityEdit(ides.api.model.fsa.FSAModel model,
long eventID,
boolean isControllable)
Constructs an edit with the given parameters. |
|
| Method Summary | |
|---|---|
boolean |
canRedo()
|
boolean |
canUndo()
|
java.lang.String |
getPresentationName()
Returns the name that should be displayed besides the Undo/Redo menu items, so the user knows which action will be undone/redone. |
void |
redo()
Has to be called once after the instantiation of the edit, in order to enact it. |
void |
undo()
|
| Methods inherited from class templates.diagram.actions.AbstractDiagramUndoableEdit |
|---|
setLastOfMultiple |
| Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
addEdit, die, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ides.api.model.fsa.FSAModel model
FSAModel which contains the DESEvent whose
controllability should be set.
protected long eventID
DESEvent whose controllability has to be set.
protected boolean newControllable
protected boolean oldControllable
| Constructor Detail |
|---|
public DiagramUndoableEdits.SetControllabilityEdit(ides.api.model.fsa.FSAModel model,
long eventID,
boolean isControllable)
model - the FSAModel which contains the DESEvent
whose controllability should be seteventID - the id of the DESEvent whose controllability has
to be setisControllable - the new controllability setting for the event (if
true, the event will become controllable; if
false the event will become uncontrollable)| Method Detail |
|---|
public void redo()
throws javax.swing.undo.CannotRedoException
redo in interface javax.swing.undo.UndoableEditredo in class javax.swing.undo.AbstractUndoableEditjavax.swing.undo.CannotRedoException
public void undo()
throws javax.swing.undo.CannotUndoException
undo in interface javax.swing.undo.UndoableEditundo in class javax.swing.undo.AbstractUndoableEditjavax.swing.undo.CannotUndoExceptionpublic boolean canUndo()
canUndo in interface javax.swing.undo.UndoableEditcanUndo in class javax.swing.undo.AbstractUndoableEditpublic boolean canRedo()
canRedo in interface javax.swing.undo.UndoableEditcanRedo in class javax.swing.undo.AbstractUndoableEditpublic java.lang.String getPresentationName()
getPresentationName in interface javax.swing.undo.UndoableEditgetPresentationName in class javax.swing.undo.AbstractUndoableEdit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||