java.lang.Object
javax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CompoundEdit
org.jhotdraw8.fxbase.undo.CompositeEdit
- All Implemented Interfaces:
Serializable,UndoableEdit
A concrete subclass of AbstractUndoableEdit, used to assemble little
UndoableEdits into great big ones.
Usage:
CompositeEdit compositeEdit=new CompositeEdit();
fire(compositeEdit);
fire(...other edits...);
fire(compositeEdit);
- See Also:
-
Field Summary
Fields inherited from class javax.swing.undo.CompoundEdit
editsFields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddEdit(UndoableEdit anEdit) If this edit isinProgress, acceptsanEditand returns true.Methods inherited from class javax.swing.undo.CompoundEdit
canRedo, canUndo, die, end, isInProgress, isSignificant, lastEdit, redo, toString, undoMethods inherited from class javax.swing.undo.AbstractUndoableEdit
replaceEdit
-
Constructor Details
-
CompositeEdit
public CompositeEdit() -
CompositeEdit
-
-
Method Details
-
addEdit
If this edit isinProgress, acceptsanEditand returns true.If an
anEditis this edit, then accepts self, and setsinProgressto false.- Specified by:
addEditin interfaceUndoableEdit- Overrides:
addEditin classCompoundEdit- Parameters:
anEdit- the edit to be added- Returns:
-
getPresentationName
- Specified by:
getPresentationNamein interfaceUndoableEdit- Overrides:
getPresentationNamein classCompoundEdit
-
getUndoPresentationName
- Specified by:
getUndoPresentationNamein interfaceUndoableEdit- Overrides:
getUndoPresentationNamein classCompoundEdit
-
getRedoPresentationName
- Specified by:
getRedoPresentationNamein interfaceUndoableEdit- Overrides:
getRedoPresentationNamein classCompoundEdit
-