Package com.simsilica.lemur
Class TextField
java.lang.Object
com.jme3.scene.Spatial
com.jme3.scene.Node
com.simsilica.lemur.Panel
com.simsilica.lemur.TextField
- All Implemented Interfaces:
HasLocalTransform
,CloneableSmartAsset
,Collidable
,Savable
,JmeCloneable
,Cloneable
- Direct Known Subclasses:
PasswordField
A GUI element allowing text entry.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jme3.scene.Spatial
Spatial.BatchHint, Spatial.CullHint, Spatial.DFSMode
-
Field Summary
FieldsFields inherited from class com.simsilica.lemur.Panel
EFFECT_CLOSE, EFFECT_OPEN, LAYER_BACKGROUND, LAYER_BORDER, LAYER_INSETS
Fields inherited from class com.jme3.scene.Spatial
batchHint, controls, cullHint, frustrumIntersects, key, localLights, localOverrides, localTransform, name, parent, queueBucket, queueDistance, refreshFlags, RF_BOUND, RF_CHILD_LIGHTLIST, RF_LIGHTLIST, RF_MATPARAM_OVERRIDE, RF_TRANSFORM, shadowMode, userData, worldBound, worldLights, worldOverrides, worldTransform
-
Constructor Summary
ConstructorsModifierConstructorDescriptionTextField
(DocumentModel model) protected
TextField
(DocumentModel model, boolean applyStyles, ElementId elementId, String style) TextField
(DocumentModel model, ElementId elementId, String style) TextField
(DocumentModel model, String style) -
Method Summary
Modifier and TypeMethodDescriptionprotected TextEntryComponent
getColor()
getFont()
float
float
float
getText()
static void
boolean
void
protected void
setDocumentModel
(DocumentModel model) void
void
setFontSize
(float f) void
Sets the preferred with of the cursor quad.void
setPreferredLineCount
(int i) void
setPreferredWidth
(float f) void
setSingleLine
(boolean f) void
void
void
toString()
Returns the Spatial's name followed by the class of the spatial
Example: "MyNode (com.jme3.scene.Spatial)"Methods inherited from class com.simsilica.lemur.Panel
addEffect, addMouseListener, getAlpha, getBackground, getBorder, getEffectControl, getEffects, getElementId, getInsets, getInsetsComponent, getPreferredSize, getSize, getStyle, hasEffect, removeEffect, removeMouseListener, runEffect, setAlpha, setAlpha, setBackground, setBorder, setChildAlpha, setEffects, setInsets, setInsetsComponent, setPreferredSize, setSize
Methods inherited from class com.jme3.scene.Node
attachChild, attachChildAt, breadthFirstTraversal, clone, cloneFields, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, oldDeepClone, read, setLightListRefresh, setLodLevel, setMaterial, setMatParamOverrideRefresh, setModelBound, setParent, setTransformRefresh, swapChildren, updateGeometricState, updateLogicalState, updateModelBound, updateWorldBound, write
Methods inherited from class com.jme3.scene.Spatial
addControl, addControlAt, addLight, addMatParamOverride, breadthFirstTraversal, center, checkCulling, clearMatParamOverrides, clone, depthFirstTraversal, forceRefresh, getBatchHint, getControl, getControl, getCullHint, getKey, getLastFrustumIntersection, getLocalBatchHint, getLocalCullHint, getLocalLightList, getLocalMatParamOverrides, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getName, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldMatParamOverrides, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, jmeClone, localToWorld, lookAt, matches, move, move, oldClone, removeControl, removeControl, removeFromParent, removeLight, removeMatParamOverride, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setBatchHint, setBoundRefresh, setCullHint, setKey, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setQueueBucket, setRequiresUpdates, setShadowMode, setUserData, updateMatParamOverrides, updateWorldLightList, updateWorldTransforms, worldToLocal
-
Field Details
-
ELEMENT_ID
- See Also:
-
LAYER_TEXT
- See Also:
-
-
Constructor Details
-
TextField
-
TextField
-
TextField
-
TextField
-
TextField
-
TextField
-
TextField
-
TextField
-
-
Method Details
-
setDocumentModel
-
createTextEntryComponent
-
initializeDefaultStyles
-
getActionMap
-
getDocumentModel
-
setText
-
getText
-
setTextVAlignment
@StyleAttribute(value="textVAlignment", lookupDefault=false) public void setTextVAlignment(VAlignment a) -
getTextVAlignment
-
setTextHAlignment
@StyleAttribute(value="textHAlignment", lookupDefault=false) public void setTextHAlignment(HAlignment a) -
getTextHAlignment
-
setFont
-
getFont
-
setColor
-
getColor
-
setFontSize
-
getFontSize
public float getFontSize() -
setSingleLine
-
isSingleLine
public boolean isSingleLine() -
setPreferredWidth
-
getPreferredWidth
public float getPreferredWidth() -
setPreferredLineCount
-
getPreferredLineCount
public float getPreferredLineCount() -
setPreferredCursorWidth
Sets the preferred with of the cursor quad. If set to null then the default behavior is used. See TextEntryComponent.setPreferredCursorWidth(). -
getPreferredCursorWidth
-
toString
Description copied from class:Spatial
Returns the Spatial's name followed by the class of the spatial
Example: "MyNode (com.jme3.scene.Spatial)"
-