public class Textbox extends JMEContainer implements ITextbox, IInitable, IItemCachable
com.jme3.scene.Spatial.CullHint
INestable.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, initializeGeometry
addItem, 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, toString
attachChild, 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, write
addControl, 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, worldToLocal
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addItemListener, 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, setZOrder
addItem, deRegisterChildrenChangedListener, getChildItems, getChildrenCount, hasChildren, registerChildrenChangedListener, removeAllItems, removeItem
initializeGeometry
public 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)
IItemCachable
deconstruct
in interface IItemCachable
loc
- the student idpublic IColourRectangle getBackground()
ITextbox
getBackground
in interface ITextbox
public float getHeight()
ITextbox
public IImage getListenBlock()
ITextbox
getListenBlock
in interface ITextbox
public IRoundedBorder getTextBorder()
ITextbox
getTextBorder
in interface ITextbox
public IMutableLabel getTextLabel()
ITextbox
getTextLabel
in interface ITextbox
public float getWidth()
ITextbox
public void setColours(com.jme3.math.ColorRGBA bgColour, com.jme3.math.ColorRGBA borderColour, FontColour fontColour)
ITextbox
setColours
in interface ITextbox
bgColour
- the bg colourborderColour
- the border colourfontColour
- the font colourpublic void setHeight(float height)
ITextbox
public void setMovable(boolean movable)
ITextbox
setMovable
in interface ITextbox
movable
- the new movablepublic void setScaleLimits(float scaleMin, float scaleMax)
ITextbox
setScaleLimits
in interface ITextbox
scaleMin
- the scale minscaleMax
- the scale maxpublic void setText(java.lang.String text, IStage stage)
ITextbox