public class ActionButton
extends com.simsilica.lemur.Button
EFFECT_ACTIVATE, EFFECT_CLICK, EFFECT_DEACTIVATE, EFFECT_DISABLE, EFFECT_ENABLE, EFFECT_FOCUS, EFFECT_PRESS, EFFECT_RELEASE, EFFECT_UNFOCUS, ELEMENT_IDEFFECT_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| Constructor and Description |
|---|
ActionButton(Action action) |
ActionButton(Action action,
com.simsilica.lemur.style.ElementId elementId) |
ActionButton(Action action,
com.simsilica.lemur.style.ElementId elementId,
java.lang.String style) |
ActionButton(Action action,
java.lang.String style) |
| Modifier and Type | Method and Description |
|---|---|
Action |
getAction() |
void |
setAction(Action action)
Sets a new Action to this button and clears any previously
set action.
|
protected void |
setupCommands() |
protected void |
updateButton() |
protected void |
updateEnabled() |
protected void |
updateIcon() |
void |
updateLogicalState(float tpf) |
protected void |
updateText() |
addClickCommands, addClickCommands, addCommands, click, getClickCommands, getColor, getCommands, getFocusColor, getFocusShadowColor, getHighlightColor, getHighlightShadowColor, getShadowColor, initializeDefaultStyles, isEnabled, isFocused, isFocusHighlightOn, isHighlightOn, isPressed, removeClickCommands, resetColors, runClick, setButtonCommands, setColor, setEnabled, setFocusColor, setFocusShadowColor, setHighlightColor, setHighlightShadowColor, setPressed, setShadowColor, showFocus, showHighlight, toStringgetFont, 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 ActionButton(Action action)
public ActionButton(Action action, java.lang.String style)
public ActionButton(Action action, com.simsilica.lemur.style.ElementId elementId)
public ActionButton(Action action, com.simsilica.lemur.style.ElementId elementId, java.lang.String style)
protected final void setupCommands()
public final void setAction(Action action)
public Action getAction()
public void updateLogicalState(float tpf)
updateLogicalState in class com.jme3.scene.Nodeprotected void updateButton()
protected void updateText()
protected void updateEnabled()
protected void updateIcon()