|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfeud.testgame.gui.GUIComponent
feud.testgame.gui.TextField
A text field component. After clicking into a text field, you'll get a cursor and can type some stuff into it.
Field Summary |
Fields inherited from class feud.testgame.gui.GUIComponent |
visible |
Constructor Summary | |
TextField(int xpos,
int ypos,
int xdim,
int ydim)
Creates a new text field. |
Method Summary | |
void |
draw(com.threed.jpct.FrameBuffer buffer)
Draws this component and all of its childs. |
boolean |
evaluateInput(MouseMapper mouse,
com.threed.jpct.util.KeyMapper mapper)
Processes key and mouse events in the context of this component. |
java.lang.String |
getText()
The current text of the text field. |
void |
setText(java.lang.String txt)
Sets the text for the text field. |
Methods inherited from class feud.testgame.gui.GUIComponent |
add, getParent, getParentX, getParentY, getX, getY, isVisible, setVisible, setX, setY |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextField(int xpos, int ypos, int xdim, int ydim)
xpos
- the x-position of the upper left corner.ypos
- the y-position of the upper left corner.xdim
- the dimension in x direction.ydim
- the dimension in y direction.Method Detail |
public java.lang.String getText()
public void setText(java.lang.String txt)
txt
- the new textpublic boolean evaluateInput(MouseMapper mouse, com.threed.jpct.util.KeyMapper mapper)
GUIComponent
evaluateInput
in class GUIComponent
mouse
- the MouseMapper used to process mouse eventsmapper
- the KeyMapper used to process key events
public void draw(com.threed.jpct.FrameBuffer buffer)
GUIComponent
draw
in class GUIComponent
buffer
- the FrameBuffer on which to draw to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |