public class CursorBuffer
extends java.lang.Object
StringBuilder that also contains the current cursor position.| Constructor | Description |
|---|---|
CursorBuffer() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
clear() |
|
CursorBuffer |
copy() |
|
char |
current() |
|
boolean |
isOverTyping() |
|
int |
length() |
|
char |
nextChar() |
|
void |
setOverTyping(boolean b) |
|
java.lang.String |
toString() |
|
java.lang.String |
upToCursor() |
|
void |
write(char c) |
Write the specific character into the buffer, setting the cursor position
ahead one.
|
void |
write(java.lang.CharSequence str) |
Insert the specified chars into the buffer, setting the cursor to the end of the insertion point.
|
public CursorBuffer copy()
public boolean isOverTyping()
public void setOverTyping(boolean b)
public int length()
public char nextChar()
public char current()
public void write(char c)
isOverTyping().c - the character to insertpublic void write(java.lang.CharSequence str)
public boolean clear()
public java.lang.String upToCursor()
public java.lang.String toString()
toString in class java.lang.Object