Package com.simsilica.lemur
Class TabbedPanel
java.lang.Object
com.jme3.scene.Spatial
com.jme3.scene.Node
com.simsilica.lemur.Panel
com.simsilica.lemur.TabbedPanel
- All Implemented Interfaces:
HasLocalTransform,CloneableSmartAsset,Collidable,Savable,JmeCloneable,Cloneable
A very simple tabbed panel element that presents a set
of button "tabs" at the top that can select different child
content.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classclassRepresents a Tab in the TabbedPanel.Nested classes/interfaces inherited from class com.jme3.scene.Spatial
Spatial.BatchHint, Spatial.CullHint, Spatial.DFSMode -
Field Summary
FieldsFields inherited from class com.simsilica.lemur.Panel
EFFECT_CLOSE, EFFECT_OPEN, LAYER_BACKGROUND, LAYER_BORDER, LAYER_INSETSFields 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_GLOBAL_LIGHTS, RF_LIGHTLIST, RF_MATPARAM_OVERRIDE, RF_TRANSFORM, shadowMode, userData, worldBound, worldLights, worldOverrides, worldTransform -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTabbedPanel(boolean applyStyles, ElementId elementId, String style) TabbedPanel(ElementId elementId, String style) TabbedPanel(String style) -
Method Summary
Modifier and TypeMethodDescription<T extends Panel>
TAdds the specified contents as a new tab using the specified title.Returns the text color used for activated tabs.Returns the currently selected tab.Returns a versioned view of the currently selected tab.getTabs()Returns a read-only list of the Tabs contained in this tabbed panel.<T extends Panel>
TInserts the specified contents as a new tab using the specified title inserted at the specified index.protected voidremoveTab(TabbedPanel.Tab tab) Removes the specified tab from this tabbed panel.voidsetActivationColor(ColorRGBA color) Sets the text color that will be used for activated tabs.protected voidvoidSets the currently selected tab to the tab specified.voidupdateLogicalState(float tpf) updateLogicalStatecalls 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, removeEffect, removeMouseListener, runEffect, setAlpha, setAlpha, setBackground, setBorder, setChildAlpha, setEffects, setInsets, setInsetsComponent, setPreferredSize, setSize, toStringMethods 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, writeMethods 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, hasGlobalLights, 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
-
Field Details
-
ELEMENT_ID
-
-
Constructor Details
-
TabbedPanel
public TabbedPanel() -
TabbedPanel
-
TabbedPanel
-
TabbedPanel
-
-
Method Details
-
addTab
Adds the specified contents as a new tab using the specified title. -
insertTab
Inserts the specified contents as a new tab using the specified title inserted at the specified index. -
removeTab
Removes the specified tab from this tabbed panel. Returns the tab that was removed or null if the tab is not a member of this tabbed panel. Note: if the specified tab is the currently selected tab then the selection will be reset to the next available tab. -
getTabs
Returns a read-only list of the Tabs contained in this tabbed panel. -
getSelectionModel
Returns a versioned view of the currently selected tab. Callers can create VersionedReferences to watch for changes. -
setActivationColor
@StyleAttribute(value="activationColor", lookupDefault=false) public void setActivationColor(ColorRGBA color) Sets the text color that will be used for activated tabs. -
getActivationColor
Returns the text color used for activated tabs. -
refreshTabs
protected void refreshTabs() -
setSelectedTab
Sets the currently selected tab to the tab specified. -
getSelectedTab
Returns the currently selected tab. -
setDisplayedTab
-
updateLogicalState
public void updateLogicalState(float tpf) Description copied from class:SpatialupdateLogicalStatecalls theupdate()method for all controls attached to this Spatial.- Overrides:
updateLogicalStatein classNode- Parameters:
tpf- Time per frame.- See Also:
-