Package Summary  Overview Summary

class:CompoundEdit [NONE]

field:edits [NONE]

  • edits

    protected Vector<UndoableEdit> edits
    The collection of UndoableEdits undone/redone en masse by this CompoundEdit.

constructor:<init>() [NONE]

  • CompoundEdit

    public CompoundEdit()
    Constructs a CompoundEdit.

method:undo() [NONE]

method:redo() [NONE]

method:lastEdit() [NONE]

  • lastEdit

    protected UndoableEdit lastEdit()
    Returns the last UndoableEdit in edits, or null if edits is empty.
    Returns:
    the last UndoableEdit in edits, or null if edits is empty.

method:die() [NONE]

method:addEdit(javax.swing.undo.UndoableEdit) [NONE]

  • addEdit

    public boolean addEdit​(UndoableEdit anEdit)
    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.

    Specified by:
    addEdit in interface UndoableEdit
    Overrides:
    addEdit in class AbstractUndoableEdit
    Parameters:
    anEdit - the edit to be added
    Returns:
    true if the edit is inProgress; otherwise returns false
    See Also:
    UndoableEdit.addEdit(javax.swing.undo.UndoableEdit)

method:end() [NONE]

method:canUndo() [NONE]

method:canRedo() [NONE]

method:isInProgress() [NONE]

  • isInProgress

    public boolean isInProgress()
    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:
    whether this edit is in progress
    See Also:
    end()

method:isSignificant() [NONE]

method:getPresentationName() [NONE]

method:getUndoPresentationName() [NONE]

method:getRedoPresentationName() [NONE]

method:toString() [NONE]

  • toString

    public String toString()
    Returns a string that displays and identifies this object's properties.
    Overrides:
    toString in class AbstractUndoableEdit
    Returns:
    a String representation of this object

© 2019 Oracle Corporation and/or its affiliates