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.UndoableEditaddEdit in class javax.swing.undo.CompoundEditpublic boolean hasEdits()
public java.lang.String getUndoPresentationName()
getUndoPresentationName in interface javax.swing.undo.UndoableEditgetUndoPresentationName in class javax.swing.undo.CompoundEditpublic java.lang.String getRedoPresentationName()
getRedoPresentationName in interface javax.swing.undo.UndoableEditgetRedoPresentationName in class javax.swing.undo.CompoundEditpublic java.lang.String getNameOnly()