com.sshtools.daemon.terminal

Class Editline


public class Editline
extends java.lang.Object

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

Constructor Summary

Editline(TerminalIO io)
Creates a new Editline 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)
int
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

Editline

public Editline(TerminalIO io)
Creates a new Editline object.
Parameters:
io -

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 int 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.