Package me.araopj.cscreen.components
Class TextBox
- java.lang.Object
-
- me.araopj.cscreen.components.Box
-
- me.araopj.cscreen.components.TextBox
-
-
Constructor Summary
Constructors Constructor Description TextBox(int r, int c)Constructs a `TextBox` with the specified position.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears the text content of the TextBox.voidplace(Screen sc)Places the TextBox on the specified screen.voidsetHeight(int height)Sets the height of the TextBox.voidsetText(String text)Sets the text content of the TextBox.
-
-
-
Field Detail
-
r
protected int r
-
c
protected int c
-
charSets
protected CharSets charSets
-
-
Method Detail
-
setText
public void setText(String text)
Sets the text content of the TextBox.- Parameters:
text- The text to be set in the TextBox.
-
setHeight
public void setHeight(int height)
Sets the height of the TextBox.
-
clear
public void clear()
Clears the text content of the TextBox.
-
-