com.jme.ui
Class UIEditBox

java.lang.Object
  extended bycom.jme.scene.Spatial
      extended bycom.jme.scene.Node
          extended bycom.jme.ui.UIObject
              extended bycom.jme.ui.UIActiveObject
                  extended bycom.jme.ui.UIEditBox
All Implemented Interfaces:
java.io.Serializable

public class UIEditBox
extends UIActiveObject

UIEditBox is a Node based aggrigation b/t a UIText and UIActiveArea

Author:
schustej
See Also:
Serialized Form

Nested Class Summary
 class UIEditBox.EditBoxKeyInputAction
           
 
Field Summary
protected  InputHandler _bufferedInput
           
 
Fields inherited from class com.jme.ui.UIActiveObject
_actions, _hitArea, _inputHandler, _state, DOWN, DRAW_DOWN, DRAW_OVER, OVER, SELECTED, UP
 
Fields inherited from class com.jme.ui.UIObject
_bottomborder, _height, _leftborder, _quad, _rightborder, _textureStates, _topborder, _width, _x, _y, BORDER, INVERSE_BORDER, TEXTURE
 
Fields inherited from class com.jme.scene.Node
children
 
Fields inherited from class com.jme.scene.Spatial
currentStates, defaultStateList, forceCull, forceView, frustrumIntersects, geometricalControllers, lightCombineMode, localRotation, localScale, localTranslation, name, parent, queueDistance, renderQueueMode, renderStateList, textureCombineMode, worldBound, worldRotation, worldScale, worldTranslation, zOrder
 
Constructor Summary
UIEditBox(java.lang.String name, int x, int y, int width, int height, InputHandler inputHandler, InputHandler bufferedInputHandler, UIColorScheme scheme, UIFonts fonts, java.lang.String fontName, java.lang.String text, float xtrim, float ytrim, int flags)
          Constructor.
 
Method Summary
 boolean update(float time)
          used to update the active flag and the text in the box to be rendered
 
Methods inherited from class com.jme.ui.UIActiveObject
addAction, centerAt, fireActions, getState, hitTest, removeAction, setAltBorderColors, setBaseBorderColors, setBaseColors, setHighlightColors, setLocation
 
Methods inherited from class com.jme.ui.UIObject
getHeight, getWidth, setup, usingBorders, usingInverseBorder, usingStdBorder, usingTexture
 
Methods inherited from class com.jme.scene.Node
applyRenderState, attachChild, detachAllChildren, detachChild, detachChildAt, detachChildNamed, draw, drawBounds, findCollisions, findPick, getChild, getChild, getChildren, getQuantity, hasChild, hasCollision, putClone, setChild, setForceView, updateCollisionTree, updateWorldBound, updateWorldData
 
Methods inherited from class com.jme.scene.Spatial
addController, applyDefaultStates, calculateCollisions, calculatePick, clearCurrentState, clearCurrentStates, clearRenderState, getController, getControllers, getCurrentState, getLastFrustumIntersection, getLightCombineMode, getLocalRotation, getLocalScale, getLocalTranslation, getName, getParent, getRenderQueueMode, getRenderStateList, getTextureCombineMode, getWorldBound, getWorldRotation, getWorldScale, getWorldTranslation, getZOrder, isForceCulled, isForceView, onDraw, onDrawBounds, propagateBoundToRoot, propagateStatesFromRoot, removeController, removeFromParent, setForceCull, setLightCombineMode, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalTranslation, setName, setParent, setRenderQueueMode, setRenderState, setTextureCombineMode, setWorldBound, setZOrder, toString, updateGeometricState, updateRenderState, updateRenderState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_bufferedInput

protected InputHandler _bufferedInput
Constructor Detail

UIEditBox

public UIEditBox(java.lang.String name,
                 int x,
                 int y,
                 int width,
                 int height,
                 InputHandler inputHandler,
                 InputHandler bufferedInputHandler,
                 UIColorScheme scheme,
                 UIFonts fonts,
                 java.lang.String fontName,
                 java.lang.String text,
                 float xtrim,
                 float ytrim,
                 int flags)
Constructor.

Parameters:
name -
inputHandler - passed to the UIActiveArea
x - passed to the UIText
y - passed to the UIText
xtrim - passed to the UIText
ytrim - passed to the UIText
Method Detail

update

public boolean update(float time)
used to update the active flag and the text in the box to be rendered

Specified by:
update in class UIActiveObject
Returns: