public class NamedCompound
extends javax.swing.undo.CompoundEdit
Constructor and Description |
---|
NamedCompound(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
addEdit(javax.swing.undo.UndoableEdit undoableEdit) |
java.lang.String |
getNameOnly()
Returns the name of this compound, without the Undo or Redo prefix.
|
java.lang.String |
getRedoPresentationName() |
java.lang.String |
getUndoPresentationName() |
boolean |
hasEdits() |
public boolean addEdit(javax.swing.undo.UndoableEdit undoableEdit)
addEdit
in interface javax.swing.undo.UndoableEdit
addEdit
in class javax.swing.undo.CompoundEdit
public boolean hasEdits()
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
public java.lang.String getNameOnly()