|
TelnetD at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.wimpi.telnetd.io.toolkit.Component
net.wimpi.telnetd.io.toolkit.ActiveComponent
net.wimpi.telnetd.io.toolkit.Editfield
Class that implements an Editfield. * * @author Dieter Wimberger * @version 2.0 (13/03/2005)
Field Summary |
Fields inherited from class net.wimpi.telnetd.io.toolkit.Component |
m_Dim, m_IO, m_Name, m_Position |
Constructor Summary | |
Editfield(BasicTerminalIO io,
java.lang.String name,
int length)
Constructs an Editfield. |
Method Summary | |
void |
append(char ch)
|
void |
append(java.lang.String str)
|
void |
clear()
|
void |
draw()
Method that draws the component. |
char |
getCharAt(int pos)
|
int |
getCursorPosition()
|
int |
getLength()
Accessor method for field length |
int |
getSize()
Accessor method for field buffer size |
java.lang.String |
getValue()
|
void |
insertCharAt(int pos,
char ch)
|
void |
insertStringAt(int pos,
java.lang.String str)
|
boolean |
isInInsertMode()
|
boolean |
isJustBackspace()
|
boolean |
isPasswordField()
|
void |
registerInputFilter(InputFilter filter)
|
void |
registerInputValidator(InputValidator validator)
|
void |
removeCharAt(int pos)
|
void |
run()
Method that will be * reading and processing input. |
void |
setCharAt(int pos,
char ch)
|
void |
setInsertMode(boolean b)
|
void |
setJustBackspace(boolean b)
|
void |
setPasswordField(boolean b)
|
void |
setValue(java.lang.String str)
|
Methods inherited from class net.wimpi.telnetd.io.toolkit.Component |
getDimension, getLocation, getName, setDimension, setLocation, setLocation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Editfield(BasicTerminalIO io, java.lang.String name, int length)
Method Detail |
public int getLength()
public int getSize()
public java.lang.String getValue()
public void setValue(java.lang.String str) throws BufferOverflowException, java.io.IOException
BufferOverflowException
java.io.IOException
public void clear() throws java.io.IOException
java.io.IOException
public char getCharAt(int pos) throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsException
public void setCharAt(int pos, char ch) throws java.lang.IndexOutOfBoundsException, java.io.IOException
java.lang.IndexOutOfBoundsException
java.io.IOException
public void insertCharAt(int pos, char ch) throws BufferOverflowException, java.lang.IndexOutOfBoundsException, java.io.IOException
BufferOverflowException
java.lang.IndexOutOfBoundsException
java.io.IOException
public void removeCharAt(int pos) throws java.lang.IndexOutOfBoundsException, java.io.IOException
java.lang.IndexOutOfBoundsException
java.io.IOException
public void insertStringAt(int pos, java.lang.String str) throws BufferOverflowException, java.lang.IndexOutOfBoundsException, java.io.IOException
BufferOverflowException
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 boolean isJustBackspace()
public void setJustBackspace(boolean b)
public void registerInputFilter(InputFilter filter)
filter
- Object instance that implements the InputFilter interface.public void registerInputValidator(InputValidator validator)
validator
- Object instance that implements the InputValidator interface.public boolean isInInsertMode()
public void setInsertMode(boolean b)
public boolean isPasswordField()
public void setPasswordField(boolean b)
public void run() throws java.io.IOException
run
in class ActiveComponent
java.io.IOException
public void draw() throws java.io.IOException
Component
draw
in class Component
java.io.IOException
|
TelnetD at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |