|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CompoundEdit
de.sciss.app.AbstractCompoundEdit
public abstract class AbstractCompoundEdit
This subclass of CompoundEdit
is used
to synchronize an Undo or Redo operation.
If for example, several edits of writing to a
MultirateTrackEditor are recorded, this happens
in a synchronized block. This class guarantees
that an appropriate synchronization is maintained
in an undo / redo operation.
Field Summary |
---|
Fields inherited from class javax.swing.undo.CompoundEdit |
---|
edits |
Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
---|
RedoName, UndoName |
Constructor Summary | |
---|---|
protected |
AbstractCompoundEdit()
Creates a CompountEdit object |
protected |
AbstractCompoundEdit(java.lang.String presentationName)
Creates a CompountEdit object with a given name |
Method Summary | |
---|---|
void |
addPerform(PerformableEdit edit)
|
void |
cancel()
Cancels the compound edit and undos all sub edits made so far. |
protected abstract void |
cancelDone()
This gets called after the cancel operation but still inside the sync block. |
void |
debugDump(int nest)
|
java.lang.String |
getPresentationName()
|
java.lang.String |
getRedoPresentationName()
|
protected java.lang.String |
getResourceString(java.lang.String key)
|
java.lang.String |
getUndoPresentationName()
|
PerformableEdit |
perform()
|
void |
redo()
Performs redo on all compound sub edits |
protected abstract void |
redoDone()
This gets called after the redo operation but still inside the sync block. |
void |
undo()
Performs undo on all compound sub edits |
protected abstract void |
undoDone()
This gets called after the undo operation but still inside the sync block. |
Methods inherited from class javax.swing.undo.CompoundEdit |
---|
addEdit, canRedo, canUndo, die, end, isInProgress, isSignificant, lastEdit, toString |
Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
---|
replaceEdit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.swing.undo.UndoableEdit |
---|
addEdit, canRedo, canUndo, die, isSignificant, replaceEdit |
Constructor Detail |
---|
protected AbstractCompoundEdit()
CompountEdit
object
protected AbstractCompoundEdit(java.lang.String presentationName)
CompountEdit
object with a given name
presentationName
- text describing the compound editMethod Detail |
---|
public void undo()
undo
in interface javax.swing.undo.UndoableEdit
undo
in class javax.swing.undo.CompoundEdit
public void redo()
redo
in interface javax.swing.undo.UndoableEdit
redo
in class javax.swing.undo.CompoundEdit
public void cancel()
protected abstract void undoDone()
protected abstract void redoDone()
protected abstract void cancelDone()
public java.lang.String getPresentationName()
getPresentationName
in interface javax.swing.undo.UndoableEdit
getPresentationName
in class javax.swing.undo.CompoundEdit
public java.lang.String getUndoPresentationName()
getUndoPresentationName
in interface javax.swing.undo.UndoableEdit
getUndoPresentationName
in class javax.swing.undo.CompoundEdit
public java.lang.String getRedoPresentationName()
getRedoPresentationName
in interface javax.swing.undo.UndoableEdit
getRedoPresentationName
in class javax.swing.undo.CompoundEdit
protected java.lang.String getResourceString(java.lang.String key)
public void addPerform(PerformableEdit edit)
public PerformableEdit perform()
perform
in interface PerformableEdit
public void debugDump(int nest)
debugDump
in interface PerformableEdit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |