com.sshtools.daemon.terminal

Class UserInput

Implemented Interfaces:
Runnable

public class UserInput
extends java.lang.Object
implements Runnable

Version:
$Revision: 1.12 $
Author:
$author$

Constructor Summary

UserInput(TerminalIO io, OutputStream pout)
Creates a new UserInput object.

Method Summary

void
append(String str)
void
append(char ch)
void
clear()
void
draw()
int
getCursorPosition()
String
getHardwrap()
String
getSoftwrap()
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(String str)
int
size()

Constructor Details

UserInput

public UserInput(TerminalIO io,
                 OutputStream pout)
Creates a new UserInput object.
Parameters:
io -
pout -

Method Details

append

public void append(String str)
            throws BufferOverflowException,
                   IOException

append

public void append(char ch)
            throws BufferOverflowException,
                   IOException

clear

public void clear()
            throws IOException

draw

public void draw()
            throws IOException

getCursorPosition

public int getCursorPosition()

getHardwrap

public String getHardwrap()
            throws IndexOutOfBoundsException,
                   IOException

getSoftwrap

public String getSoftwrap()
            throws IndexOutOfBoundsException,
                   IOException

getValue

public String getValue()

isHardwrapped

public boolean isHardwrapped()

isInInsertMode

public boolean isInInsertMode()

maskInput

public void maskInput(boolean maskInput)

run

public void run()

setCursorPosition

public void setCursorPosition(int pos)

setHardwrapped

public void setHardwrapped(boolean b)

setInsertMode

public void setInsertMode(boolean b)

setMask

public void setMask(char mask)
Parameters:
mask -

setValue

public void setValue(String str)
            throws BufferOverflowException,
                   IOException

size

public int size()

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.