public class UserInput
extends java.lang.Object
implements java.lang.Runnable
| Constructor and Description |
|---|
UserInput(TerminalIO io,
java.io.OutputStream pout)
Creates a new UserInput 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) |
void |
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 UserInput(TerminalIO io, java.io.OutputStream pout)
io - pout - public int size()
public java.lang.String getValue()
public void setValue(java.lang.String str)
throws BufferOverflowException,
java.io.IOException
BufferOverflowExceptionjava.io.IOExceptionpublic void maskInput(boolean maskInput)
public void setMask(char mask)
mask - public void clear()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getSoftwrap()
throws java.lang.IndexOutOfBoundsException,
java.io.IOException
java.lang.IndexOutOfBoundsExceptionjava.io.IOExceptionpublic java.lang.String getHardwrap()
throws java.lang.IndexOutOfBoundsException,
java.io.IOException
java.lang.IndexOutOfBoundsExceptionjava.io.IOExceptionpublic void append(char ch)
throws BufferOverflowException,
java.io.IOException
BufferOverflowExceptionjava.io.IOExceptionpublic void append(java.lang.String str)
throws BufferOverflowException,
java.io.IOException
BufferOverflowExceptionjava.io.IOExceptionpublic int getCursorPosition()
public void setCursorPosition(int pos)
public boolean isInInsertMode()
public void setInsertMode(boolean b)
public boolean isHardwrapped()
public void setHardwrapped(boolean b)
public void run()
run in interface java.lang.Runnablepublic void draw()
throws java.io.IOException
java.io.IOExceptionCopyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.