|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjsynedit.UndoComponent
public class UndoComponent
| Field Summary | |
|---|---|
static int |
MAX_UNDOLIMIT
|
static long |
SEQUENCE_DELAY
|
| Constructor Summary | |
|---|---|
UndoComponent()
|
|
| Method Summary | |
|---|---|
int |
getLimit()
Gets the maximum number of sequences UndoComponent will hold. |
long |
getSequenceDelay()
Gets the delay authorized between two text transformations for a single undo/redo operation. |
boolean |
getTextModified()
Indicates if operations has been performed on text after last undo/redo operation |
void |
redo()
Redo last undone change. |
void |
reset()
Empty the UndoComponent |
void |
setLimit(int limit)
Sets the maximum number of sequences UndoComponent will hold. |
void |
setSequenceDelay(long delay)
Modifies the delay between two text transformations. |
void |
setTextModified(boolean val)
Forces UndoComponent to perform as if text has been modified (val is true) or hasn't been modified (val is false) after last undo/redo operation. |
void |
undo()
Undo last change. |
void |
undoableEditHappened(javax.swing.event.UndoableEditEvent e)
Executed each time UndoableEditEvent happened. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long SEQUENCE_DELAY
public static final int MAX_UNDOLIMIT
| Constructor Detail |
|---|
public UndoComponent()
| Method Detail |
|---|
public void undoableEditHappened(javax.swing.event.UndoableEditEvent e)
undoableEditHappened in interface javax.swing.event.UndoableEditListenerpublic void undo()
public void redo()
public void reset()
public boolean getTextModified()
public void setTextModified(boolean val)
val - public long getSequenceDelay()
public void setSequenceDelay(long delay)
delay - the delay in millisecondspublic int getLimit()
UndoManager.getLimit()public void setLimit(int limit)
limit - the limit sizeUndoManager.setLimit(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||