org.jtheque.primary.controller.impl.undo
Class CreatedSagaEdit

java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by org.jtheque.primary.controller.impl.undo.CreatedSagaEdit
All Implemented Interfaces:
Serializable, UndoableEdit

public final class CreatedSagaEdit
extends AbstractUndoableEdit

An edit corresponding to a creation of an editor.

Author:
Baptiste Wicht
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Constructor Summary
CreatedSagaEdit(Saga saga)
          Construct a new CreatedEditorEdit.
 
Method Summary
 String getPresentationName()
           
 void redo()
           
 void undo()
           
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, die, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreatedSagaEdit

public CreatedSagaEdit(Saga saga)
Construct a new CreatedEditorEdit.

Parameters:
saga - The created editor.
Method Detail

undo

public void undo()
Specified by:
undo in interface UndoableEdit
Overrides:
undo in class AbstractUndoableEdit

redo

public void redo()
Specified by:
redo in interface UndoableEdit
Overrides:
redo in class AbstractUndoableEdit

getPresentationName

public String getPresentationName()
Specified by:
getPresentationName in interface UndoableEdit
Overrides:
getPresentationName in class AbstractUndoableEdit


Copyright © 2010 JTheque. All Rights Reserved.