public class TTextArea extends TComponent
Removing in future
Only infinity heightConstructor and Description |
---|
TTextArea(int x,
int y)
Instantiates a new T text area.
|
Modifier and Type | Method and Description |
---|---|
void |
deselect(TDisplayDrawer drawer,
TerminalScreen screen) |
void |
draw(TDisplayDrawer drawer,
TerminalScreen screen) |
Color[] |
getSelectColors()
Get select colors color [ ].
|
java.lang.String[] |
getText()
Get text string [ ].
|
boolean |
isStretchable()
Is stretchable boolean.
|
void |
keyInput(TDisplayDrawer drawer,
TerminalScreen screen,
KeyInput input,
Cancellable c) |
void |
putCharacter(char c)
Put character.
|
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 TTextArea(int x, int y)
x
- the size xy
- the size ypublic java.lang.String[] getText()
public void setSelectColors(Color... selectColors)
selectColors
- the select colorspublic Color[] getSelectColors()
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 c)
keyInput
in class TComponent
drawer
- the drawerscreen
- the screeninput
- the key inputc
- the out key input cancellingpublic void putCharacter(char c)
c
- the characterpublic boolean isStretchable()
TComponent
isStretchable
in class TComponent