public class Selector<T>
extends com.simsilica.lemur.Panel
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTAINER_ID |
static java.lang.String |
ELEMENT_ID |
static java.lang.String |
EXPANDER_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 |
---|---|
|
Selector() |
protected |
Selector(boolean applyStyles,
VersionedList<T> model,
ValueRenderer<T> valueRenderer,
SelectionModel selection,
com.simsilica.lemur.style.ElementId elementId,
java.lang.String style) |
|
Selector(VersionedList<T> model) |
|
Selector(VersionedList<T> model,
com.simsilica.lemur.style.ElementId elementId,
java.lang.String style) |
|
Selector(VersionedList<T> model,
com.google.common.base.Function<? super T,java.lang.String> stringTransform) |
|
Selector(VersionedList<T> model,
java.lang.String style) |
|
Selector(VersionedList<T> model,
ValueRenderer<T> renderer) |
|
Selector(VersionedList<T> model,
ValueRenderer<T> renderer,
com.simsilica.lemur.style.ElementId elementId,
java.lang.String style) |
|
Selector(VersionedList<T> model,
ValueRenderer<T> renderer,
java.lang.String style) |
Modifier and Type | Method and Description |
---|---|
protected void |
boundSelection()
Attempts to make sure that the selected item is always in range.
|
protected int |
calculateListSize() |
protected com.jme3.math.Vector3f |
calculatePopupLocation(com.jme3.math.Vector3f loc) |
protected void |
collapse() |
com.simsilica.lemur.core.VersionedReference<T> |
createSelectedItemReference() |
protected void |
expand() |
com.simsilica.lemur.Button |
getExpanderButton() |
ListBox |
getListBox() |
int |
getMaximumVisibleItems() |
VersionedList<T> |
getModel() |
com.simsilica.lemur.Container |
getPopupContainer() |
T |
getSelectedItem() |
protected T |
getSelectedListValue() |
SelectionModel |
getSelectionModel() |
ValueRenderer<T> |
getValueRenderer() |
static void |
initializeDefaultStyles(com.simsilica.lemur.style.Styles styles,
com.simsilica.lemur.style.Attributes attrs) |
boolean |
isExpanded() |
protected void |
resetView() |
void |
setExpanded(boolean b) |
void |
setMaximumVisibleItems(int count) |
void |
setModel(VersionedList<T> model) |
void |
setSelectedItem(T item) |
void |
setSelectionModel(SelectionModel selectionModel) |
void |
setValueRenderer(ValueRenderer<T> valueRenderer) |
void |
updateLogicalState(float tpf) |
protected void |
updateSelection() |
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 CONTAINER_ID
public static final java.lang.String EXPANDER_ID
public Selector()
public Selector(VersionedList<T> model)
public Selector(VersionedList<T> model, com.google.common.base.Function<? super T,java.lang.String> stringTransform)
public Selector(VersionedList<T> model, ValueRenderer<T> renderer)
public Selector(VersionedList<T> model, ValueRenderer<T> renderer, java.lang.String style)
public Selector(VersionedList<T> model, java.lang.String style)
public Selector(VersionedList<T> model, com.simsilica.lemur.style.ElementId elementId, java.lang.String style)
public Selector(VersionedList<T> model, ValueRenderer<T> renderer, com.simsilica.lemur.style.ElementId elementId, java.lang.String style)
protected Selector(boolean applyStyles, VersionedList<T> model, ValueRenderer<T> valueRenderer, SelectionModel selection, 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 VersionedList<T> getModel()
public void setModel(VersionedList<T> model)
public void setSelectionModel(SelectionModel selectionModel)
public SelectionModel getSelectionModel()
public void setValueRenderer(ValueRenderer<T> valueRenderer)
public ValueRenderer<T> getValueRenderer()
public ListBox getListBox()
public com.simsilica.lemur.Button getExpanderButton()
public com.simsilica.lemur.Container getPopupContainer()
@StyleAttribute(value="maximumVisibleItems", lookupDefault=false) public void setMaximumVisibleItems(int count)
public int getMaximumVisibleItems()
public void setSelectedItem(T item)
public T getSelectedItem()
public com.simsilica.lemur.core.VersionedReference<T> createSelectedItemReference()
protected void boundSelection()
protected void updateSelection()
public void updateLogicalState(float tpf)
updateLogicalState
in class com.jme3.scene.Node
public void setExpanded(boolean b)
public boolean isExpanded()
protected void resetView()
protected T getSelectedListValue()
protected int calculateListSize()
protected com.jme3.math.Vector3f calculatePopupLocation(com.jme3.math.Vector3f loc)
protected void expand()
protected void collapse()