public class CursorBuffer extends Object
StringBuilder that also contains the current cursor position.| Modifier and Type | Field and Description |
|---|---|
StringBuilder |
buffer |
int |
cursor |
| Constructor and Description |
|---|
CursorBuffer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
clear() |
char |
current() |
boolean |
isOverTyping() |
int |
length() |
void |
setOverTyping(boolean b) |
String |
toString() |
void |
write(char c)
Write the specific character into the buffer, setting the cursor position
ahead one.
|
void |
write(CharSequence str)
Insert the specified chars into the buffer, setting the cursor to the end of the insertion point.
|
public int cursor
public final StringBuilder buffer
public boolean isOverTyping()
public void setOverTyping(boolean b)
public int length()
public char current()
public void write(char c)
isOverTyping().c - the character to insertpublic void write(CharSequence str)
public boolean clear()
Copyright © 2008-2013 Sonatype. All Rights Reserved.