public class TPasswordField extends TComponent
Constructor and Description |
---|
TPasswordField(int length)
Instantiates a new Terminal password field.
|
TPasswordField(int length,
java.lang.String text)
Instantiates a new Terminal password field with text.
|
Modifier and Type | Method and Description |
---|---|
void |
deselect(TDisplayDrawer drawer,
TerminalScreen screen) |
void |
draw(TDisplayDrawer drawer,
TerminalScreen screen) |
int |
getCharacterSize()
Gets length size.
|
java.lang.String |
getPassword()
Gets text.
|
Color[] |
getSelectColors()
Get select colors color [...].
|
boolean |
isPointerAtLast()
Is pointer at last.
|
boolean |
isStretchable()
Is stretchable boolean.
|
void |
keyInput(TDisplayDrawer drawer,
TerminalScreen screen,
KeyInput input,
Cancellable outKeyInputCancelling) |
void |
select(TDisplayDrawer drawer,
TerminalScreen screen) |
void |
setSelectColors(Color... selectColors)
Sets select colors.
|
getAbsoluteSize, getBackgroundColor, getCurrentDisplayingScreen, getForegroundColor, getMaximumSize, getMinimumSize, getSize, isDisplaying, isNoOutScreenMoving, isPositionFixed, isSelectable, isSizeFixed, onResize, setAbsoluteSize, setBackgroundColor, setDisplayingScreen, setForegroundColor, setMaximumSize, setMinimumSize, setNoOutScreenMoving, setPositionFixed, setSelectable, setSize, setSizeFixed
public TPasswordField(int length)
length
- the maximum lengthpublic TPasswordField(int length, java.lang.String text)
length
- the maximum lengthtext
- the textpublic void setSelectColors(Color... selectColors)
selectColors
- the select colorspublic Color[] getSelectColors()
public java.lang.String getPassword()
public int getCharacterSize()
public boolean isPointerAtLast()
public void draw(TDisplayDrawer drawer, TerminalScreen screen)
draw
in class TComponent
drawer
- the drawerscreen
- the screenpublic void select(TDisplayDrawer drawer, TerminalScreen screen)
select
in class TComponent
drawer
- the drawerscreen
- the screenpublic void deselect(TDisplayDrawer drawer, TerminalScreen screen)
deselect
in class TComponent
drawer
- the drawerscreen
- the screenpublic void keyInput(TDisplayDrawer drawer, TerminalScreen screen, KeyInput input, Cancellable outKeyInputCancelling)
keyInput
in class TComponent
drawer
- the drawerscreen
- the screeninput
- the key inputoutKeyInputCancelling
- the out key input cancellingpublic boolean isStretchable()
TComponent
isStretchable
in class TComponent