public class Textbox extends JMEContainer implements ITextbox, IInitable, IItemCachable
com.jme3.scene.Spatial.CullHintINestable.IChildrenChangedListener| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CACHABLE_TYPE
The Constant CACHABLE_TYPE.
|
KEY_JMEITEMDATA| Constructor and Description |
|---|
Textbox(java.lang.String name,
java.util.UUID uuid)
Instantiates a new textbox.
|
| Modifier and Type | Method and Description |
|---|---|
GalleryItemDatabaseFormat |
deconstruct(java.lang.String loc)
Deconstruct.
|
IColourRectangle |
getBackground()
Gets the background.
|
float |
getHeight()
Gets the height.
|
IImage |
getListenBlock()
Gets the listen block.
|
IRoundedBorder |
getTextBorder()
Gets the text border.
|
IMutableLabel |
getTextLabel()
Gets the text label.
|
float |
getWidth()
Gets the width.
|
static Textbox |
reconstruct(GalleryItemDatabaseFormat galleryItem,
IStage stage,
java.lang.String loc)
Reconstruct.
|
void |
setColours(com.jme3.math.ColorRGBA bgColour,
com.jme3.math.ColorRGBA borderColour,
FontColour fontColour)
Sets the colours.
|
void |
setHeight(float height)
Sets the height.
|
void |
setMovable(boolean movable)
Sets the movable.
|
void |
setScaleLimits(float scaleMin,
float scaleMax)
Sets the scale limits.
|
void |
setText(java.lang.String text,
IStage stage)
Sets the text.
|
void |
setWidth(float width)
Sets the width.
|
getManipulableSpatial, initializeGeometryaddItem, addItemListener, behaviourAdded, centerItem, convertWorldVelocityToLocalVelocity, deRegisterChildrenChangedListener, getBehaviours, getBehaviours, getChildItems, getChildrenCount, getItemChildren, getItemListeners, getItemName, getMultiTouchDispatcher, getName, getParentItem, getRelativeLocation, getRelativeLocationOfWorldLocation, getRelativeRotation, getRelativeScale, getUUID, getWorldLocation, getWorldLocation, getWorldRotationDegrees, getZOrder, getZOrderManager, hasChildren, isVisible, registerChildrenChangedListener, removeAllItems, removeItem, removeItemListener, setInteractionEnabled, setItemListeners, setItemName, setParentItem, setRelativeLocation, setRelativeRotation, setRelativeScale, setVisible, setWorldLocation, setZOrder, toStringattachChild, attachChildAt, childChange, clone, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, read, setLodLevel, setMaterial, setModelBound, swapChildren, updateGeometricState, updateLogicalState, updateModelBound, writeaddControl, addLight, breadthFirstTraversal, center, checkCulling, clone, getControl, getControl, getCullHint, getLastFrustumIntersection, getLocalCullHint, getLocalLightList, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, localToWorld, lookAt, matches, move, move, removeControl, removeControl, removeFromParent, removeLight, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setCullHint, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setQueueBucket, setShadowMode, setUserData, worldToLocalequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddItemListener, behaviourAdded, centerItem, convertWorldVelocityToLocalVelocity, getBehaviours, getBehaviours, getItemListeners, getManipulableSpatial, getMultiTouchDispatcher, getName, getParentItem, getRelativeLocation, getRelativeLocationOfWorldLocation, getRelativeRotation, getRelativeScale, getUUID, getWorldLocation, getWorldLocation, getWorldRotationDegrees, getZOrder, getZOrderManager, isVisible, removeItemListener, setInteractionEnabled, setItemListeners, setParentItem, setRelativeLocation, setRelativeRotation, setRelativeScale, setVisible, setWorldLocation, setZOrderaddItem, deRegisterChildrenChangedListener, getChildItems, getChildrenCount, hasChildren, registerChildrenChangedListener, removeAllItems, removeIteminitializeGeometrypublic static final java.lang.String CACHABLE_TYPE
public Textbox(java.lang.String name,
java.util.UUID uuid)
name - the nameuuid - the uuidpublic static Textbox reconstruct(GalleryItemDatabaseFormat galleryItem, IStage stage, java.lang.String loc)
galleryItem - the gallery itemstage - the stageloc - the locpublic GalleryItemDatabaseFormat deconstruct(java.lang.String loc)
IItemCachabledeconstruct in interface IItemCachableloc - the student idpublic IColourRectangle getBackground()
ITextboxgetBackground in interface ITextboxpublic float getHeight()
ITextboxpublic IImage getListenBlock()
ITextboxgetListenBlock in interface ITextboxpublic IRoundedBorder getTextBorder()
ITextboxgetTextBorder in interface ITextboxpublic IMutableLabel getTextLabel()
ITextboxgetTextLabel in interface ITextboxpublic float getWidth()
ITextboxpublic void setColours(com.jme3.math.ColorRGBA bgColour,
com.jme3.math.ColorRGBA borderColour,
FontColour fontColour)
ITextboxsetColours in interface ITextboxbgColour - the bg colourborderColour - the border colourfontColour - the font colourpublic void setHeight(float height)
ITextboxpublic void setMovable(boolean movable)
ITextboxsetMovable in interface ITextboxmovable - the new movablepublic void setScaleLimits(float scaleMin,
float scaleMax)
ITextboxsetScaleLimits in interface ITextboxscaleMin - the scale minscaleMax - the scale maxpublic void setText(java.lang.String text,
IStage stage)
ITextbox