Modifier and Type | Field and Description |
---|---|
static int |
PASSWORD_OFF |
static int |
PASSWORD_ON |
static int |
PASSWORD_ON_TO_END_OF_LINE |
BUTTON_CLEAR, BUTTON_CLOSE, BUTTON_HIDE, BUTTON_STOP, OPTION_DONT_PUT_IN_WINDOW, OPTION_READ_ONLY
Modifier and Type | Method and Description |
---|---|
Handle |
connectToReader(OutputStream out) |
Handle |
connectToReader(Writer out) |
Handle |
connectToWriter(InputStream in) |
Handle |
connectToWriter(Reader in) |
void |
setPasswordKey(int key)
Set the password mode toggle key.
|
int |
setPasswordMode(int passwordMode)
Set the password mode.
|
void |
setUseLineBuffer(boolean useLineBuffer) |
void |
typed(String text)
Simulate the user typing the text.
|
clear, close, doDefaultAction, getEventDispatcher, getReader, getWriter, setVisible
static final int PASSWORD_ON
static final int PASSWORD_OFF
static final int PASSWORD_ON_TO_END_OF_LINE
void setUseLineBuffer(boolean useLineBuffer)
Handle connectToWriter(InputStream in)
Handle connectToReader(OutputStream out)
void typed(String text)
text
- the text to simulate the user typing.int setPasswordMode(int passwordMode)
passwordMode
- one of the PASSWORD_XXX values.void setPasswordKey(int key)
key
- the key. This toggles between off and on to end of line.
Pressing the key with SHIFT will switch on permanently until the key is pressed again.