Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
javax.swing.undo

Class UndoManager

java.lang.Object
|
+--javax.swing.undo.AbstractUndoableEdit
   |
   +--javax.swing.undo.CompoundEdit
      |
      +--javax.swing.undo.UndoManager

All Implemented Interfaces:

UndoableEditListener, UndoableEdit, Serializable


public class UndoManager

extends CompoundEdit

implements UndoableEditListener

UndoManager

Author:

Constructor Summary

UndoManager()

Constructor UndoManager

Method Summary

synchronized booleanaddEdit(javax.swing.undo.UndoableEdit value0)

addEdit
synchronized booleancanRedo()

canRedo
synchronized booleancanUndo()

canUndo
synchronized booleancanUndoOrRedo()

canUndoOrRedo
synchronized voiddiscardAllEdits()

discardAllEdits
javax.swing.undo.UndoableEditeditToBeRedone()

editToBeRedone
javax.swing.undo.UndoableEditeditToBeUndone()

editToBeUndone
synchronized voidend()

end
synchronized intgetLimit()

getLimit
synchronized java.lang.StringgetRedoPresentationName()

getRedoPresentationName
synchronized java.lang.StringgetUndoOrRedoPresentationName()

getUndoOrRedoPresentationName
synchronized java.lang.StringgetUndoPresentationName()

getUndoPresentationName
synchronized voidredo()

redo
voidredoTo(javax.swing.undo.UndoableEdit value0)

redoTo
synchronized voidsetLimit(int value0)

setLimit
java.lang.StringtoString()

toString
voidtrimEdits(int value0, int value1)

trimEdits
voidtrimForLimit()

trimForLimit
synchronized voidundo()

undo
synchronized voidundoOrRedo()

undoOrRedo
voidundoTo(javax.swing.undo.UndoableEdit value0)

undoTo
voidundoableEditHappened(javax.swing.event.UndoableEditEvent value0)

undoableEditHappened

Constructor Details

UndoManager

public UndoManager()

Constructor UndoManager


Method Details

addEdit

public synchronized boolean addEdit(javax.swing.undo.UndoableEdit value0)

addEdit

Parameters:


canRedo

public synchronized boolean canRedo()

canRedo


canUndo

public synchronized boolean canUndo()

canUndo


canUndoOrRedo

public synchronized boolean canUndoOrRedo()

canUndoOrRedo


discardAllEdits

public synchronized void discardAllEdits()

discardAllEdits


editToBeRedone

protected UndoableEdit editToBeRedone()

editToBeRedone


editToBeUndone

protected UndoableEdit editToBeUndone()

editToBeUndone


end

public synchronized void end()

end


getLimit

public synchronized int getLimit()

getLimit


getRedoPresentationName

public synchronized String getRedoPresentationName()

getRedoPresentationName


getUndoOrRedoPresentationName

public synchronized String getUndoOrRedoPresentationName()

getUndoOrRedoPresentationName


getUndoPresentationName

public synchronized String getUndoPresentationName()

getUndoPresentationName


redo

public synchronized void redo()

redo

Throws:


redoTo

protected void redoTo(javax.swing.undo.UndoableEdit value0)

redoTo

Parameters:

Throws:


setLimit

public synchronized void setLimit(int value0)

setLimit

Parameters:


toString

public String toString()

toString


trimEdits

protected void trimEdits(int value0, int value1)

trimEdits

Parameters:


trimForLimit

protected void trimForLimit()

trimForLimit


undo

public synchronized void undo()

undo

Throws:


undoOrRedo

public synchronized void undoOrRedo()

undoOrRedo

Throws:


undoTo

protected void undoTo(javax.swing.undo.UndoableEdit value0)

undoTo

Parameters:

Throws:


undoableEditHappened

public void undoableEditHappened(javax.swing.event.UndoableEditEvent value0)

undoableEditHappened

Parameters: