|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CompoundEdit
javax.swing.undo.UndoManager
org.pietschy.command.undo.UndoContext
public class UndoContext
UndoContext extends UndoManager to provide state change notifications to listners.
| Field Summary |
|---|
| Fields inherited from class javax.swing.undo.CompoundEdit |
|---|
edits |
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
RedoName, UndoName |
| Constructor Summary | |
|---|---|
UndoContext()
|
|
| Method Summary | |
|---|---|
void |
addChangeListener(javax.swing.event.ChangeListener l)
|
boolean |
addEdit(javax.swing.undo.UndoableEdit anEdit)
|
boolean |
canRedo()
|
boolean |
canUndo()
|
void |
fireStateChaged()
|
void |
redo()
|
void |
removeChangeListener(javax.swing.event.ChangeListener l)
|
void |
undo()
|
void |
undoableEditHappened(javax.swing.event.UndoableEditEvent e)
|
| Methods inherited from class javax.swing.undo.UndoManager |
|---|
canUndoOrRedo, discardAllEdits, editToBeRedone, editToBeUndone, end, getLimit, getRedoPresentationName, getUndoOrRedoPresentationName, getUndoPresentationName, redoTo, setLimit, toString, trimEdits, trimForLimit, undoOrRedo, undoTo |
| Methods inherited from class javax.swing.undo.CompoundEdit |
|---|
die, getPresentationName, isInProgress, isSignificant, lastEdit |
| Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
replaceEdit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UndoContext()
| Method Detail |
|---|
public boolean addEdit(javax.swing.undo.UndoableEdit anEdit)
addEdit in interface javax.swing.undo.UndoableEditaddEdit in class javax.swing.undo.UndoManagerpublic void undoableEditHappened(javax.swing.event.UndoableEditEvent e)
undoableEditHappened in interface javax.swing.event.UndoableEditListenerundoableEditHappened in class javax.swing.undo.UndoManagerpublic void undo()
undo in interface javax.swing.undo.UndoableEditundo in class javax.swing.undo.UndoManagerpublic void redo()
redo in interface javax.swing.undo.UndoableEditredo in class javax.swing.undo.UndoManagerpublic boolean canUndo()
canUndo in interface javax.swing.undo.UndoableEditcanUndo in class javax.swing.undo.UndoManagerpublic boolean canRedo()
canRedo in interface javax.swing.undo.UndoableEditcanRedo in class javax.swing.undo.UndoManagerpublic void fireStateChaged()
public void addChangeListener(javax.swing.event.ChangeListener l)
public void removeChangeListener(javax.swing.event.ChangeListener l)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||