Package com.simsilica.lemur
Class RollupPanel
java.lang.Object
com.jme3.scene.Spatial
com.jme3.scene.Node
com.simsilica.lemur.Panel
com.simsilica.lemur.RollupPanel
- All Implemented Interfaces:
HasLocalTransform
,CloneableSmartAsset
,Collidable
,Savable
,JmeCloneable
,Cloneable
A panel that expands or collapses its contents based on
pressing a title bar button.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
protected class
Nested classes/interfaces inherited from class com.jme3.scene.Spatial
Spatial.BatchHint, Spatial.CullHint, Spatial.DFSMode
-
Field Summary
Fields inherited from class com.simsilica.lemur.Panel
EFFECT_CLOSE, EFFECT_OPEN, ELEMENT_ID, 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
ConstructorsModifierConstructorDescriptionprotected
RollupPanel
(String titleString, Panel contents, boolean applyStyles, ElementId elementId, String style) RollupPanel
(String title, Panel contents, ElementId elementId, String style) RollupPanel
(String title, Panel contents, String style) RollupPanel
(String title, ElementId elementId, String style) RollupPanel
(String title, String style) -
Method Summary
Modifier and TypeMethodDescriptionReturns the panel that is expaned and collapsed during rollup.Returns the checkbox model that is used to determine open/close state.getTitle()
Returns the string that appears in the title bar button.Returns the titlebar container that holds the main title bar button.Returns the title bar button.boolean
isOpen()
Returns true if the rollup panel is open, false if it is closed.protected void
void
setContents
(Panel p) Resets the child contents that will be expanded/collapsed with the rollup.void
setOpen
(boolean open) Set to true to open the rollup panel or false to close it.void
Sets the checkbox model used to determine open/close state.void
Sets the title that appears in the title bar button.protected final void
void
updateLogicalState
(float tpf) updateLogicalState
calls theupdate()
method for all controls attached to this Spatial.Methods inherited from class com.simsilica.lemur.Panel
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
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
-
Constructor Details
-
RollupPanel
-
RollupPanel
-
RollupPanel
-
RollupPanel
-
RollupPanel
-
-
Method Details
-
setupCommands
protected final void setupCommands() -
setContents
Resets the child contents that will be expanded/collapsed with the rollup. -
getContents
Returns the panel that is expaned and collapsed during rollup. -
setTitle
Sets the title that appears in the title bar button. -
getTitle
Returns the string that appears in the title bar button. -
getTitleElement
Returns the title bar button. -
getTitleContainer
Returns the titlebar container that holds the main title bar button. This can be used to add additional components to the title bar space such as additional buttons, indicators, etc. -
setOpen
public void setOpen(boolean open) Set to true to open the rollup panel or false to close it. -
isOpen
public boolean isOpen()Returns true if the rollup panel is open, false if it is closed. -
setOpenModel
Sets the checkbox model used to determine open/close state. -
getOpenModel
Returns the checkbox model that is used to determine open/close state. -
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:
-
resetOpen
protected void resetOpen()
-