A concrete subclass of AbstractUndoableEdit, used to assemble little UndoableEdits into great big ones.
A concrete subclass of AbstractUndoableEdit, used to assemble little UndoableEdits into great big ones.
(add-edit this an-edit)
If this edit is inProgress, accepts anEdit and returns true.
The last edit added to this CompoundEdit is given a chance to addEdit(anEdit). If it refuses (returns false), anEdit is given a chance to replaceEdit the last edit. If anEdit returns false here, it is added to edits.
an-edit - the edit to be added - javax.swing.undo.UndoableEdit
returns: true if the edit is inProgress;
otherwise returns false - boolean
If this edit is inProgress, accepts anEdit and returns true. The last edit added to this CompoundEdit is given a chance to addEdit(anEdit). If it refuses (returns false), anEdit is given a chance to replaceEdit the last edit. If anEdit returns false here, it is added to edits. an-edit - the edit to be added - `javax.swing.undo.UndoableEdit` returns: true if the edit is inProgress; otherwise returns false - `boolean`
(can-redo? this)
Returns false if isInProgress or if super returns false.
returns: true if this edit is alive
and hasBeenDone is false - boolean
Returns false if isInProgress or if super returns false. returns: true if this edit is alive and hasBeenDone is false - `boolean`
(can-undo? this)
Returns false if isInProgress or if super returns false.
returns: true if this edit is alive
and hasBeenDone is true - boolean
Returns false if isInProgress or if super returns false. returns: true if this edit is alive and hasBeenDone is true - `boolean`
(die this)
Sends die to each subedit, in the reverse of the order that they were added.
Sends die to each subedit, in the reverse of the order that they were added.
(get-presentation-name this)
Returns getPresentationName from the last UndoableEdit added to edits. If edits is empty, calls super.
returns: the empty string "" - java.lang.String
Returns getPresentationName from the last UndoableEdit added to edits. If edits is empty, calls super. returns: the empty string "" - `java.lang.String`
(get-redo-presentation-name this)
Returns getRedoPresentationName from the last UndoableEdit added to edits. If edits is empty, calls super.
returns: the value from the defaults table with key
AbstractUndoableEdit.redoText, followed
by a space, followed by getPresentationName
unless getPresentationName is "" in which
case, the defaults value is returned alone. - java.lang.String
Returns getRedoPresentationName from the last UndoableEdit added to edits. If edits is empty, calls super. returns: the value from the defaults table with key AbstractUndoableEdit.redoText, followed by a space, followed by getPresentationName unless getPresentationName is "" in which case, the defaults value is returned alone. - `java.lang.String`
(get-undo-presentation-name this)
Returns getUndoPresentationName from the last UndoableEdit added to edits. If edits is empty, calls super.
returns: the value from the defaults table with key
AbstractUndoableEdit.undoText, followed
by a space, followed by getPresentationName
unless getPresentationName is "" in which
case, the defaults value is returned alone. - java.lang.String
Returns getUndoPresentationName from the last UndoableEdit added to edits. If edits is empty, calls super. returns: the value from the defaults table with key AbstractUndoableEdit.undoText, followed by a space, followed by getPresentationName unless getPresentationName is "" in which case, the defaults value is returned alone. - `java.lang.String`
(in-progress? this)
Returns true if this edit is in progress--that is, it has not received end. This generally means that edits are still being added to it.
returns: boolean
Returns true if this edit is in progress--that is, it has not received end. This generally means that edits are still being added to it. returns: `boolean`
(redo this)
Sends redo to all contained UndoableEdits in the order in which they were added.
throws: javax.swing.undo.CannotRedoException - if canRedo returns false
Sends redo to all contained UndoableEdits in the order in which they were added. throws: javax.swing.undo.CannotRedoException - if canRedo returns false
(significant? this)
Returns true if any of the UndoableEdits in edits do. Returns false if they all return false.
returns: true - boolean
Returns true if any of the UndoableEdits in edits do. Returns false if they all return false. returns: true - `boolean`
(to-string this)
Returns a string that displays and identifies this object's properties.
returns: a String representation of this object - java.lang.String
Returns a string that displays and identifies this object's properties. returns: a String representation of this object - `java.lang.String`
(undo this)
Sends undo to all contained UndoableEdits in the reverse of the order in which they were added.
throws: javax.swing.undo.CannotUndoException - if canUndo returns false
Sends undo to all contained UndoableEdits in the reverse of the order in which they were added. throws: javax.swing.undo.CannotUndoException - if canUndo returns false
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close