public class Checkbox extends Button
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Checkbox.ToggleCommand |
Button.ButtonAction, Button.ButtonMouseHandler, Button.FocusObserver| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENT_ID |
static Command<Button> |
TOGGLE_COMMAND |
EFFECT_ACTIVATE, EFFECT_CLICK, EFFECT_DEACTIVATE, EFFECT_DISABLE, EFFECT_ENABLE, EFFECT_FOCUS, EFFECT_PRESS, EFFECT_RELEASE, EFFECT_UNFOCUSLAYER_ICON, LAYER_SHADOW_TEXT, LAYER_TEXTEFFECT_CLOSE, EFFECT_OPEN, LAYER_BACKGROUND, LAYER_BORDER, LAYER_INSETSbatchHint, 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| Modifier | Constructor and Description |
|---|---|
|
Checkbox(java.lang.String s) |
|
Checkbox(java.lang.String s,
CheckboxModel model) |
protected |
Checkbox(java.lang.String s,
CheckboxModel model,
boolean applyStyles,
ElementId elementId,
java.lang.String style) |
|
Checkbox(java.lang.String s,
CheckboxModel model,
ElementId elementId,
java.lang.String style) |
|
Checkbox(java.lang.String s,
CheckboxModel model,
java.lang.String style) |
|
Checkbox(java.lang.String s,
ElementId elementId,
java.lang.String style) |
|
Checkbox(java.lang.String s,
java.lang.String style) |
| Modifier and Type | Method and Description |
|---|---|
CheckboxModel |
getModel() |
GuiComponent |
getOffView() |
GuiComponent |
getOnView() |
static void |
initializeDefaultStyles(Attributes attrs) |
boolean |
isChecked() |
protected void |
resetStateView() |
void |
setChecked(boolean b) |
void |
setModel(CheckboxModel model) |
void |
setOffView(GuiComponent c) |
void |
setOnView(GuiComponent c) |
protected void |
setStateView(GuiComponent c) |
protected void |
setupCommands() |
java.lang.String |
toString() |
void |
updateLogicalState(float tpf) |
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, showHighlightgetFont, getFontSize, getIcon, getMaxWidth, getShadowOffset, getText, getTextHAlignment, getTextVAlignment, setFont, setFontSize, setIcon, setMaxWidth, setShadowOffset, setText, setTextHAlignment, setTextVAlignmentaddEffect, 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, setSizeattachChild, 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, writeaddControl, addLight, addMatParamOverride, breadthFirstTraversal, center, checkCulling, clearMatParamOverrides, clone, 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, worldToLocalpublic static final java.lang.String ELEMENT_ID
public Checkbox(java.lang.String s)
public Checkbox(java.lang.String s,
java.lang.String style)
public Checkbox(java.lang.String s,
ElementId elementId,
java.lang.String style)
public Checkbox(java.lang.String s,
CheckboxModel model,
ElementId elementId,
java.lang.String style)
public Checkbox(java.lang.String s,
CheckboxModel model)
public Checkbox(java.lang.String s,
CheckboxModel model,
java.lang.String style)
protected Checkbox(java.lang.String s,
CheckboxModel model,
boolean applyStyles,
ElementId elementId,
java.lang.String style)
protected final void setupCommands()
public static void initializeDefaultStyles(Attributes attrs)
public void setModel(CheckboxModel model)
public CheckboxModel getModel()
protected void setStateView(GuiComponent c)
protected void resetStateView()
public void updateLogicalState(float tpf)
updateLogicalState in class com.jme3.scene.Nodepublic void setChecked(boolean b)
public boolean isChecked()
@StyleAttribute(value="onView", lookupDefault=false) public void setOnView(GuiComponent c)
public GuiComponent getOnView()
@StyleAttribute(value="offView", lookupDefault=false) public void setOffView(GuiComponent c)
public GuiComponent getOffView()