|
|||||||||
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.UndoableEdit
addEdit
in class javax.swing.undo.UndoManager
public void undoableEditHappened(javax.swing.event.UndoableEditEvent e)
undoableEditHappened
in interface javax.swing.event.UndoableEditListener
undoableEditHappened
in class javax.swing.undo.UndoManager
public void undo()
undo
in interface javax.swing.undo.UndoableEdit
undo
in class javax.swing.undo.UndoManager
public void redo()
redo
in interface javax.swing.undo.UndoableEdit
redo
in class javax.swing.undo.UndoManager
public boolean canUndo()
canUndo
in interface javax.swing.undo.UndoableEdit
canUndo
in class javax.swing.undo.UndoManager
public boolean canRedo()
canRedo
in interface javax.swing.undo.UndoableEdit
canRedo
in class javax.swing.undo.UndoManager
public 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 |