public class CursorBuffer
extends java.lang.Object
StringBuffer
that also contains the
current cursor position.Modifier and Type | Field and Description |
---|---|
int |
cursor |
Constructor and Description |
---|
CursorBuffer() |
Modifier and Type | Method and Description |
---|---|
boolean |
clearBuffer() |
char |
current() |
JLineBuffer |
getBuffer() |
boolean |
isOvertyping() |
int |
length() |
void |
setBuffer(JLineBuffer buffer) |
void |
setOvertyping(boolean b) |
java.lang.String |
toString() |
void |
write(char c)
Write the specific character into the buffer, setting the cursor position
ahead one.
|
void |
write(java.lang.String str)
Insert the specified
String into the buffer, setting the cursor
to the end of the insertion point. |
public int length()
public char current()
public boolean clearBuffer()
public void write(char c)
c
- the character to insertpublic void write(java.lang.String str)
String
into the buffer, setting the cursor
to the end of the insertion point.str
- the Str to insert. Must not be null.public java.lang.String toString()
toString
in class java.lang.Object
public boolean isOvertyping()
public void setOvertyping(boolean b)
public JLineBuffer getBuffer()
public void setBuffer(JLineBuffer buffer)
Copyright (c) 2014 Cloud Software Group, Inc. All rights reserved.