Package org.ngengine.gui.components
Class NTextInput
java.lang.Object
com.jme3.scene.Spatial
com.jme3.scene.Node
com.simsilica.lemur.Panel
com.simsilica.lemur.Container
org.ngengine.gui.components.NTextInput
- All Implemented Interfaces:
HasLocalTransform
,CloneableSmartAsset
,Collidable
,Savable
,JmeCloneable
,GuiUpdateListener
,Cloneable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jme3.scene.Spatial
Spatial.BatchHint, Spatial.CullHint, Spatial.DFSMode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected NIconButton
static final String
protected boolean
protected NIconButton
protected TextField
protected String
protected Label
protected String
protected Container
protected NIconButton
protected Float
protected Container
protected boolean
protected boolean
protected NIconButton
protected boolean
protected String
protected float
protected HAlignment
protected VAlignment
Fields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
getLeft()
getText()
void
guiUpdate
(GuiControl source, float tpf) boolean
boolean
protected void
repaint()
void
setCopyAction
(Consumer<String> action) void
setEnabled
(boolean v) void
setGenerateAction
(Supplier<String> action) void
setIsSecretInput
(boolean secret) void
void
setPasteAction
(Supplier<String> action) void
setPreferredWidth
(Float width) void
setSingleLine
(boolean singleLine) void
void
setTextChangeAction
(Consumer<String> action) void
setTextHAlignment
(HAlignment alignment) void
setTextVAlignment
(VAlignment alignment) Methods inherited from class com.simsilica.lemur.Container
addChild, clearChildren, detachChildAt, getLayout, initializeDefaultStyles, removeChild, setLayout, toString
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, 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:
-
show
protected boolean show -
inputField
-
text
-
showBtn
-
copyBtn
-
pasteBtn
-
generateBtn
-
secret
protected boolean secret -
textVAlignment
-
textHAlignment
-
preferredWidth
-
rightIconContainer
-
leftIconContainer
-
label
-
labelComponent
-
onTextChangeAction
-
lastText
-
textChangeDelay
protected float textChangeDelay -
enabled
protected boolean enabled -
singleLine
protected boolean singleLine
-
-
Constructor Details
-
NTextInput
public NTextInput()
-
-
Method Details
-
getFontSize
public float getFontSize() -
setSingleLine
public void setSingleLine(boolean singleLine) -
setEnabled
public void setEnabled(boolean v) -
isEnabled
public boolean isEnabled() -
setTextChangeAction
-
guiUpdate
- Specified by:
guiUpdate
in interfaceGuiUpdateListener
-
setLabel
-
getLeft
-
setPreferredWidth
-
isSecretInput
public boolean isSecretInput() -
setIsSecretInput
public void setIsSecretInput(boolean secret) -
setText
-
getText
-
setCopyAction
-
setPasteAction
-
setGenerateAction
-
setTextVAlignment
@StyleAttribute(value="textHAlignment", lookupDefault=false) public void setTextVAlignment(VAlignment alignment) -
setTextHAlignment
@StyleAttribute(value="textHAlignment", lookupDefault=false) public void setTextHAlignment(HAlignment alignment) -
repaint
protected void repaint()
-