moagg.game.menu.widget
Class TextField

java.lang.Object
  extended by com.golden.gamedev.GameObject
      extended by moagg.game.menu.widget.TextField

public class TextField
extends com.golden.gamedev.GameObject


Field Summary
 
Fields inherited from class com.golden.gamedev.GameObject
bsGraphics, bsInput, bsIO, bsLoader, bsMusic, bsSound, bsTimer, fontManager, parent
 
Constructor Summary
TextField(com.golden.gamedev.GameEngine parent, java.lang.String text)
           
 
Method Summary
 java.lang.String getText()
           
 void initResources()
           
 boolean isAborted()
           
 boolean isEntered()
           
 boolean isSelected()
           
 void render(java.awt.Graphics2D g)
           
 void select()
           
 void setText(java.lang.String text)
           
 void update(long elapsedTime)
           
 
Methods inherited from class com.golden.gamedev.GameObject
checkPosMouse, checkPosMouse, click, drawFPS, finish, getCurrentFPS, getFPS, getHeight, getImage, getImage, getImages, getImages, getImages, getImages, getImages, getImages, getMouseX, getMouseY, getRandom, getWidth, hideCursor, keyDown, keyPressed, playMusic, playSound, rightClick, setFPS, setMaskColor, showCursor, start, takeScreenShot, takeScreenShot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextField

public TextField(com.golden.gamedev.GameEngine parent,
                 java.lang.String text)
Method Detail

select

public void select()

isSelected

public boolean isSelected()

isEntered

public boolean isEntered()

isAborted

public boolean isAborted()

setText

public void setText(java.lang.String text)

getText

public java.lang.String getText()

initResources

public void initResources()
Specified by:
initResources in class com.golden.gamedev.GameObject

update

public void update(long elapsedTime)
Specified by:
update in class com.golden.gamedev.GameObject

render

public void render(java.awt.Graphics2D g)
Specified by:
render in class com.golden.gamedev.GameObject


Copyright © 2008. All Rights Reserved.