org.pietschy.command.undo

Class UndoContext

Implemented Interfaces:
UndoableEditListener

public class UndoContext
extends UndoManager
implements UndoableEditListener

UndoContext extends UndoManager to provide state change notifications to listners.
Version:
$Revision: 1.4 $
Author:
andrewp

Constructor Summary

UndoContext()

Method Summary

void
addChangeListener(ChangeListener l)
boolean
addEdit(UndoableEdit anEdit)
boolean
canRedo()
boolean
canUndo()
void
fireStateChaged()
void
redo()
void
removeChangeListener(ChangeListener l)
void
undo()
void
undoableEditHappened(UndoableEditEvent e)

Constructor Details

UndoContext

public UndoContext()

Method Details

addChangeListener

public void addChangeListener(ChangeListener l)

addEdit

public boolean addEdit(UndoableEdit anEdit)

canRedo

public boolean canRedo()

canUndo

public boolean canUndo()

fireStateChaged

public void fireStateChaged()

redo

public void redo()

removeChangeListener

public void removeChangeListener(ChangeListener l)

undo

public void undo()

undoableEditHappened

public void undoableEditHappened(UndoableEditEvent e)