public class TextBox extends Component
Component.Alignment
Constructor and Description |
---|
TextBox(java.lang.String text,
java.lang.String id,
float x,
float y,
float width,
float height) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getText() |
boolean |
isActivated(Input in)
Should return true the tick when the component is activated by the user (ie when a button is clicked).
|
protected void |
renderI(Graphics g,
Input in,
float x,
float y,
float width,
float height) |
protected void |
renderOverlayI(Graphics g,
Input in,
float x,
float y,
float width,
float height) |
TextBox |
setText(java.lang.String text) |
protected void |
tickI(Input in,
AudioEngine ae,
float delta,
float x,
float y,
float width,
float height) |
public TextBox(java.lang.String text, java.lang.String id, float x, float y, float width, float height)
protected void renderOverlayI(Graphics g, Input in, float x, float y, float width, float height)
renderOverlayI
in class Component
protected void tickI(Input in, AudioEngine ae, float delta, float x, float y, float width, float height)
public boolean isActivated(Input in)
Component
isActivated
in class Component
public java.lang.String getText()
public TextBox setText(java.lang.String text)