public class Editline
extends java.lang.Object
Constructor and Description |
---|
Editline(TerminalIO io)
Creates a new Editline object.
|
Modifier and Type | Method and Description |
---|---|
void |
append(char ch) |
void |
append(java.lang.String str) |
void |
clear() |
void |
draw() |
int |
getCursorPosition() |
java.lang.String |
getHardwrap() |
java.lang.String |
getSoftwrap() |
java.lang.String |
getValue() |
boolean |
isHardwrapped() |
boolean |
isInInsertMode() |
void |
maskInput(boolean maskInput) |
int |
run() |
void |
setCursorPosition(int pos) |
void |
setHardwrapped(boolean b) |
void |
setInsertMode(boolean b) |
void |
setMask(char mask) |
void |
setValue(java.lang.String str) |
int |
size() |
public Editline(TerminalIO io)
io
- public int size()
public java.lang.String getValue()
public void setValue(java.lang.String str) throws BufferOverflowException, java.io.IOException
BufferOverflowException
java.io.IOException
public void maskInput(boolean maskInput)
public void setMask(char mask)
mask
- public void clear() throws java.io.IOException
java.io.IOException
public java.lang.String getSoftwrap() throws java.lang.IndexOutOfBoundsException, java.io.IOException
java.lang.IndexOutOfBoundsException
java.io.IOException
public java.lang.String getHardwrap() throws java.lang.IndexOutOfBoundsException, java.io.IOException
java.lang.IndexOutOfBoundsException
java.io.IOException
public void append(char ch) throws BufferOverflowException, java.io.IOException
BufferOverflowException
java.io.IOException
public void append(java.lang.String str) throws BufferOverflowException, java.io.IOException
BufferOverflowException
java.io.IOException
public int getCursorPosition()
public void setCursorPosition(int pos)
public boolean isInInsertMode()
public void setInsertMode(boolean b)
public boolean isHardwrapped()
public void setHardwrapped(boolean b)
public int run()
public void draw() throws java.io.IOException
java.io.IOException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.