Package com.ardor3d.extension.ui
Class UITextField.TextFieldWritingState
java.lang.Object
com.ardor3d.scenegraph.Spatial
com.ardor3d.scenegraph.Node
com.ardor3d.extension.ui.UIComponent
com.ardor3d.extension.ui.UIState
com.ardor3d.extension.ui.UITextField.TextFieldWritingState
- All Implemented Interfaces:
UIKeyHandler,Hintable,Savable
- Enclosing class:
UITextField
-
Field Summary
Fields inherited from class com.ardor3d.extension.ui.UIComponent
_tooltipPopTime, _tooltipText, DEFAULT_FOREGROUND_COLORFields inherited from class com.ardor3d.scenegraph.Spatial
_controllers, _delegateMap, _dirtyMark, _frustumIntersects, _listener, _localTransform, _name, _parent, _queueDistance, _renderStateList, _sceneHints, _userData, _worldBound, _worldTransform, ON_DIRTY_ATTACHED, ON_DIRTY_BOUNDING, ON_DIRTY_RENDERSTATE, ON_DIRTY_TRANSFORM, ON_DIRTY_TRANSFORM_ONLY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleankeyHeld(Key key, InputState state) Called when this component has focus and a key is held down over more than 1 input cycle.booleankeyPressed(Key key, InputState state) Called when this component has focus and a key is pressed.booleankeyReleased(Key key, InputState state) Called when this component has focus and a key is released.voidCalled by the hud when a component loses focus.voidmouseDeparted(int mouseX, int mouseY, InputState state) Called when a mouse cursor leaves this component.voidmouseEntered(int mouseX, int mouseY, InputState state) Called when a mouse cursor enters this component.booleanmousePressed(MouseButton button, InputState state) Called when a mouse button is pressed while the cursor is over this component.Methods inherited from class com.ardor3d.extension.ui.UIState
getHudX, getHudY, release, setupAppearanceMethods inherited from class com.ardor3d.extension.ui.UIComponent
addFontStyle, applySkin, attachedToHud, cancelTooltipTimer, centerOn, centerOn, clearFontStyle, clearMaximumContentSize, clearMinimumContentSize, compact, detachedFromHud, draw, drawComponent, fireComponentDirty, fireStyleChanged, fitComponentIn, gainedFocus, getBackdrop, getBorder, getCombinedOpacity, getContentHeight, getContentWidth, getCurrentOpacity, getDefaultFontFamily, getDefaultFontSize, getDefaultFontStyles, getFontStyles, getForegroundColor, getHud, getKeyFocusTarget, getLayoutData, getLocalComponentHeight, getLocalComponentWidth, getLocalFontStyles, getLocalForegroundColor, getLocalOpacity, getLocalX, getLocalY, getMargin, getMaximumContentHeight, getMaximumContentWidth, getMaximumLocalComponentHeight, getMaximumLocalComponentWidth, getMinimumContentHeight, getMinimumContentWidth, getMinimumLocalComponentHeight, getMinimumLocalComponentWidth, getPadding, getRelativeComponentBounds, getRelativeMaxComponentBounds, getRelativeMinComponentBounds, getTooltipPopTime, getTooltipText, getTopLevelComponent, getTotalBottom, getTotalLeft, getTotalRight, getTotalTop, getUIComponent, hasVirginContentArea, insideMargin, isAttachedToHUD, isConsumeKeyEvents, isConsumeMouseEvents, isEnabled, isUseTransparency, isVisible, layout, mouseClicked, mouseMoved, mouseReleased, mouseWheel, pack, postdrawComponent, predrawComponent, requestFocus, setBackdrop, setBorder, setConsumeKeyEvents, setConsumeMouseEvents, setContentHeight, setContentSize, setContentWidth, setDefaultFontFamily, setDefaultFontSize, setDefaultFontStyles, setEnabled, setFontStyles, setForegroundColor, setHudX, setHudXY, setHudY, setKeyFocusTarget, setLayoutData, setLayoutMinimumContentSize, setLocalComponentHeight, setLocalComponentSize, setLocalComponentWidth, setLocalX, setLocalXY, setLocalY, setMargin, setMaximumContentHeight, setMaximumContentSize, setMaximumContentWidth, setMinimumContentHeight, setMinimumContentSize, setMinimumContentWidth, setOpacity, setPadding, setTooltipPopTime, setTooltipText, setUseTransparency, setVirginContentArea, setVisible, updateMinimumSizeFromContents, updateWorldTransform, updateWorldTransform, validateContentSizeMethods inherited from class com.ardor3d.scenegraph.Node
acceptVisitor, attachChild, attachChildAt, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getClassTag, getNumberOfChildren, hasChild, makeCopy, makeInstanced, propagateDirtyDown, read, sortLights, swapChildren, updateChildren, updateWorldBound, updateWorldRenderStates, writeMethods inherited from class com.ardor3d.scenegraph.Spatial
addController, addTranslation, addTranslation, applyWorldRenderStates, clearControllers, clearDirty, clearDirty, clearRenderState, getController, getControllerCount, getControllers, getCurrentRenderDelegate, getLastFrustumIntersection, getListener, getLocalLastFrustumIntersection, getLocalRenderState, getLocalRenderStates, getName, getParent, getParentHintable, getRenderDelegate, getRotation, getScale, getSceneHints, getTransform, getTranslation, getUserData, getWorldBound, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, isDirty, localToWorld, markDirty, markDirty, onDraw, propagateBoundToRoot, propagateDirtyUp, propagateStatesFromRoot, propageEventUp, removeController, removeController, removeFromParent, setLastFrustumIntersection, setListener, setName, setParent, setRenderDelegate, setRenderState, setRotation, setRotation, setScale, setScale, setScale, setTransform, setTranslation, setTranslation, setUserData, setWorldRotation, setWorldRotation, setWorldScale, setWorldScale, setWorldScale, setWorldTransform, setWorldTranslation, setWorldTranslation, toString, updateControllers, updateGeometricState, updateGeometricState, updateWorldRenderStates, worldToLocal
-
Constructor Details
-
TextFieldWritingState
public TextFieldWritingState()
-
-
Method Details
-
keyReleased
Description copied from class:UIComponentCalled when this component has focus and a key is released.- Specified by:
keyReleasedin interfaceUIKeyHandler- Overrides:
keyReleasedin classUIComponent- Parameters:
key- the key released.state- the current tracked state of the input system.- Returns:
- true if we want to consider the event "consumed" by the UI system.
-
keyPressed
Description copied from class:UIComponentCalled when this component has focus and a key is pressed.- Specified by:
keyPressedin interfaceUIKeyHandler- Overrides:
keyPressedin classUIComponent- Parameters:
key- the key pressed.state- the current tracked state of the input system.- Returns:
- true if we want to consider the event "consumed" by the UI system.
-
keyHeld
Description copied from class:UIComponentCalled when this component has focus and a key is held down over more than 1 input cycle.- Specified by:
keyHeldin interfaceUIKeyHandler- Overrides:
keyHeldin classUIComponent- Parameters:
key- the key held.state- the current tracked state of the input system.- Returns:
- true if we want to consider the event "consumed" by the UI system.
-
mouseEntered
Description copied from class:UIComponentCalled when a mouse cursor enters this component.- Overrides:
mouseEnteredin classUIComponent- Parameters:
mouseX- mouse x coordinate.mouseY- mouse y coordinate.state- the current tracked state of the input system.
-
mouseDeparted
Description copied from class:UIComponentCalled when a mouse cursor leaves this component.- Overrides:
mouseDepartedin classUIComponent- Parameters:
mouseX- mouse x coordinate.mouseY- mouse y coordinate.state- the current tracked state of the input system.
-
mousePressed
Description copied from class:UIComponentCalled when a mouse button is pressed while the cursor is over this component.- Overrides:
mousePressedin classUIComponent- Parameters:
button- the button that was pressedstate- the current tracked state of the input system.- Returns:
- true if we want to consider the event "consumed" by the UI system.
-
lostFocus
public void lostFocus()Description copied from class:UIComponentCalled by the hud when a component loses focus.- Overrides:
lostFocusin classUIComponent
-