|
||||||||||
| 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.SetIconEdit
public static class DiagramUndoableEdits.SetIconEdit
Edit which does and undoes setting the icon of an Entity.
| Field Summary | |
|---|---|
protected TemplateDiagram |
diagram
The TemplateDiagram which contains the Entity. |
protected Entity |
entity
The Entity whose icon has to be set. |
protected EntityIcon |
newIcon
The new icon of the Entity. |
protected EntityIcon |
oldIcon
The old icon of the Entity. |
| Fields inherited from class templates.diagram.actions.AbstractDiagramUndoableEdit |
|---|
usePluralDescription |
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
RedoName, UndoName |
| Constructor Summary | |
|---|---|
DiagramUndoableEdits.SetIconEdit(TemplateDiagram diagram,
Entity entity,
EntityIcon newIcon)
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 TemplateDiagram diagram
TemplateDiagram which contains the Entity.
protected Entity entity
Entity whose icon has to be set.
protected EntityIcon oldIcon
Entity.
protected EntityIcon newIcon
Entity.
| Constructor Detail |
|---|
public DiagramUndoableEdits.SetIconEdit(TemplateDiagram diagram,
Entity entity,
EntityIcon newIcon)
diagram - the TemplateDiagram which contains the
Entityentity - the Entity whose icon has to be setnewIcon - the new icon for the Entity| 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 | |||||||||