Package com.simsilica.lemur
Class Checkbox
java.lang.Object
com.jme3.scene.Spatial
com.jme3.scene.Node
com.simsilica.lemur.Panel
com.simsilica.lemur.Label
com.simsilica.lemur.Button
com.simsilica.lemur.Checkbox
- All Implemented Interfaces:
HasLocalTransform
,CloneableSmartAsset
,Collidable
,Savable
,JmeCloneable
,Cloneable
A standard Checkbox GUI element that can be used to toggle
a boolean state represented by a CheckboxModel.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.simsilica.lemur.Button
Button.ButtonAction, Button.ButtonMouseHandler, Button.FocusObserver
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.Button
EFFECT_ACTIVATE, EFFECT_CLICK, EFFECT_DEACTIVATE, EFFECT_DISABLE, EFFECT_ENABLE, EFFECT_FOCUS, EFFECT_PRESS, EFFECT_RELEASE, EFFECT_UNFOCUS
Fields inherited from class com.simsilica.lemur.Label
LAYER_ICON, LAYER_SHADOW_TEXT, LAYER_TEXT
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
ConstructorsModifierConstructorDescriptionCheckbox
(String s, CheckboxModel model) protected
Checkbox
(String s, CheckboxModel model, boolean applyStyles, ElementId elementId, String style) Checkbox
(String s, CheckboxModel model, ElementId elementId, String style) Checkbox
(String s, CheckboxModel model, String style) -
Method Summary
Modifier and TypeMethodDescriptiongetModel()
static void
boolean
protected void
void
setChecked
(boolean b) void
setModel
(CheckboxModel model) void
void
protected void
protected final void
toString()
Returns the Spatial's name followed by the class of the spatial
Example: "MyNode (com.jme3.scene.Spatial)"void
updateLogicalState
(float tpf) updateLogicalState
calls theupdate()
method for all controls attached to this Spatial.Methods inherited from class com.simsilica.lemur.Button
addClickCommands, addClickCommands, addCommands, click, getClickCommands, getColor, getCommands, getFocusColor, getFocusShadowColor, getHighlightColor, getHighlightShadowColor, getShadowColor, isEnabled, isFocused, isFocusHighlightOn, isHighlightOn, isPressed, removeClickCommands, resetColors, runClick, setButtonCommands, setColor, setEnabled, setFocusColor, setFocusShadowColor, setHighlightColor, setHighlightShadowColor, setPressed, setShadowColor, showFocus, showHighlight
Methods inherited from class com.simsilica.lemur.Label
createText2d, getFont, getFontName, getFontSize, getIcon, getMaxWidth, getShadowOffset, getText, getTextHAlignment, getTextVAlignment, setFont, setFontName, setFontSize, setIcon, setMaxWidth, setShadowOffset, setText, setTextHAlignment, setTextVAlignment
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, 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:
-
TOGGLE_COMMAND
-
-
Constructor Details
-
Checkbox
-
Checkbox
-
Checkbox
-
Checkbox
-
Checkbox
-
Checkbox
-
Checkbox
protected Checkbox(String s, CheckboxModel model, boolean applyStyles, ElementId elementId, String style)
-
-
Method Details
-
setupCommands
protected final void setupCommands() -
initializeDefaultStyles
-
setModel
-
getModel
-
setStateView
-
resetStateView
protected void resetStateView() -
updateLogicalState
public void updateLogicalState(float tpf) Description copied from class:Spatial
updateLogicalState
calls theupdate()
method for all controls attached to this Spatial.- Overrides:
updateLogicalState
in classNode
- Parameters:
tpf
- Time per frame.- See Also:
-
setChecked
public void setChecked(boolean b) -
isChecked
public boolean isChecked() -
setOnView
-
getOnView
-
setOffView
-
getOffView
-
toString
Description copied from class:Spatial
Returns the Spatial's name followed by the class of the spatial
Example: "MyNode (com.jme3.scene.Spatial)"
-