public class TTextField extends TComponent
Constructor and Description |
---|
TTextField(int length)
Instantiates a new Terminal text field.
|
TTextField(int length,
java.lang.String text)
Instantiates a new Terminal text 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.
|
Color[] |
getSelectColors()
Get select colors color [...].
|
java.lang.String |
getText()
Gets text.
|
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 TTextField(int length)
length
- the maximum lengthpublic TTextField(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 getText()
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