public final class Undo
extends java.lang.Object
| Constructor and Description |
|---|
Undo()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
cursor()
Returns the cursor position.
|
void |
cursor(int c)
Sets the current cursor position before adding a new entry.
|
boolean |
first()
Returns the previous string.
|
boolean |
last()
Returns the previous string.
|
byte[] |
next()
Returns the next string.
|
byte[] |
prev()
Returns the previous string.
|
void |
reset(byte[] text)
Resets the undo history with the specified text.
|
void |
store(byte[] str,
int c)
Stores a string in the history.
|
public boolean first()
public boolean last()
public byte[] prev()
public byte[] next()
public int cursor()
public void cursor(int c)
c - cursor positionpublic void store(byte[] str,
int c)
str - string to be storedc - cursor positionpublic void reset(byte[] text)
text - initial text