public class Spinner<T>
extends com.simsilica.lemur.Panel
Modifier and Type | Class and Description |
---|---|
protected class |
Spinner.FocusObserver |
static class |
Spinner.SpinnerAction |
protected class |
Spinner.SpinnerMouseHandler |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BUTTON_PANEL_ID |
static java.lang.String |
DOWN_ID |
static java.lang.String |
EDITOR_ID |
static java.lang.String |
EFFECT_ACTIVATE |
static java.lang.String |
EFFECT_DEACTIVATE |
static java.lang.String |
EFFECT_DISABLE |
static java.lang.String |
EFFECT_ENABLE |
static java.lang.String |
EFFECT_FOCUS |
static java.lang.String |
EFFECT_NEXT |
static java.lang.String |
EFFECT_PREVIOUS |
static java.lang.String |
EFFECT_START_EDIT |
static java.lang.String |
EFFECT_STOP_EDIT |
static java.lang.String |
EFFECT_UNFOCUS |
static java.lang.String |
ELEMENT_ID |
static java.lang.String |
UP_ID |
static java.lang.String |
VALUE_ID |
EFFECT_CLOSE, EFFECT_OPEN, LAYER_BACKGROUND, LAYER_BORDER, LAYER_INSETS
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
Modifier | Constructor and Description |
---|---|
protected |
Spinner(boolean applyStyles,
SequenceModel<T> model,
ValueRenderer<T> valueRenderer,
com.simsilica.lemur.style.ElementId elementId,
java.lang.String style) |
|
Spinner(SequenceModel<T> model) |
|
Spinner(SequenceModel<T> model,
java.lang.String style) |
|
Spinner(SequenceModel<T> model,
ValueRenderer<T> valueRenderer) |
|
Spinner(SequenceModel<T> model,
ValueRenderer<T> valueRenderer,
com.simsilica.lemur.style.ElementId elementId,
java.lang.String style) |
|
Spinner(SequenceModel<T> model,
ValueRenderer<T> valueRenderer,
java.lang.String style) |
Modifier and Type | Method and Description |
---|---|
SequenceModel<T> |
getModel() |
T |
getValue() |
ValueEditor<T> |
getValueEditor() |
static void |
initializeDefaultStyles(com.simsilica.lemur.style.Styles styles,
com.simsilica.lemur.style.Attributes attrs) |
boolean |
isEditing() |
boolean |
isEnabled() |
void |
nextValue() |
void |
previousValue() |
protected void |
resetValue() |
void |
setEnabled(boolean b) |
void |
setModel(SequenceModel<T> model) |
void |
setValue(T value) |
void |
setValueEditor(ValueEditor<T> valueEditor) |
protected void |
setView(com.simsilica.lemur.Panel view) |
void |
startEditing() |
void |
stopEditing() |
void |
updateLogicalState(float tpf) |
addEffect, addMouseListener, getAlpha, getBackground, getBorder, getEffectControl, getEffects, getElementId, getInsets, getInsetsComponent, getPreferredSize, getSize, getStyle, hasEffect, initializeDefaultStyles, removeEffect, removeMouseListener, runEffect, setAlpha, setAlpha, setBackground, setBorder, setChildAlpha, setEffects, setInsets, setInsetsComponent, setPreferredSize, setSize, toString
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
addControl, 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, worldToLocal
public static final java.lang.String ELEMENT_ID
public static final java.lang.String VALUE_ID
public static final java.lang.String EDITOR_ID
public static final java.lang.String BUTTON_PANEL_ID
public static final java.lang.String UP_ID
public static final java.lang.String DOWN_ID
public static final java.lang.String EFFECT_NEXT
public static final java.lang.String EFFECT_PREVIOUS
public static final java.lang.String EFFECT_ACTIVATE
public static final java.lang.String EFFECT_DEACTIVATE
public static final java.lang.String EFFECT_START_EDIT
public static final java.lang.String EFFECT_STOP_EDIT
public static final java.lang.String EFFECT_FOCUS
public static final java.lang.String EFFECT_UNFOCUS
public static final java.lang.String EFFECT_ENABLE
public static final java.lang.String EFFECT_DISABLE
public Spinner(SequenceModel<T> model)
public Spinner(SequenceModel<T> model, ValueRenderer<T> valueRenderer)
public Spinner(SequenceModel<T> model, java.lang.String style)
public Spinner(SequenceModel<T> model, ValueRenderer<T> valueRenderer, java.lang.String style)
public Spinner(SequenceModel<T> model, ValueRenderer<T> valueRenderer, com.simsilica.lemur.style.ElementId elementId, java.lang.String style)
protected Spinner(boolean applyStyles, SequenceModel<T> model, ValueRenderer<T> valueRenderer, com.simsilica.lemur.style.ElementId elementId, java.lang.String style)
public static void initializeDefaultStyles(com.simsilica.lemur.style.Styles styles, com.simsilica.lemur.style.Attributes attrs)
public void updateLogicalState(float tpf)
updateLogicalState
in class com.jme3.scene.Node
public void setModel(SequenceModel<T> model)
public SequenceModel<T> getModel()
public void setValueEditor(ValueEditor<T> valueEditor)
public ValueEditor<T> getValueEditor()
public void setValue(T value)
public T getValue()
public void nextValue()
public void previousValue()
public void setEnabled(boolean b)
public boolean isEnabled()
public void startEditing()
public void stopEditing()
public boolean isEditing()
protected void setView(com.simsilica.lemur.Panel view)
protected void resetValue()