public class TabbedPanel extends Panel
Modifier and Type | Class and Description |
---|---|
protected class |
TabbedPanel.SwitchToTab |
class |
TabbedPanel.Tab
Represents a Tab in the TabbedPanel.
|
Modifier and Type | Field and Description |
---|---|
static ElementId |
ELEMENT_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 |
---|---|
|
TabbedPanel() |
protected |
TabbedPanel(boolean applyStyles,
ElementId elementId,
java.lang.String style) |
|
TabbedPanel(ElementId elementId,
java.lang.String style) |
|
TabbedPanel(java.lang.String style) |
Modifier and Type | Method and Description |
---|---|
<T extends Panel> |
addTab(java.lang.String title,
T contents)
Adds the specified contents as a new tab using the specified
title.
|
com.jme3.math.ColorRGBA |
getActivationColor()
Returns the text color used for activated tabs.
|
TabbedPanel.Tab |
getSelectedTab()
Returns the currently selected tab.
|
VersionedObject<TabbedPanel.Tab> |
getSelectionModel()
Returns a versioned view of the currently selected tab.
|
java.util.List<TabbedPanel.Tab> |
getTabs()
Returns a read-only list of the Tabs contained in this tabbed panel.
|
<T extends Panel> |
insertTab(int index,
java.lang.String title,
T contents)
Inserts the specified contents as a new tab using the specified
title inserted at the specified index.
|
protected void |
refreshTabs() |
TabbedPanel.Tab |
removeTab(TabbedPanel.Tab tab)
Removes the specified tab from this tabbed panel.
|
void |
setActivationColor(com.jme3.math.ColorRGBA color)
Sets the text color that will be used for activated tabs.
|
protected void |
setDisplayedTab(TabbedPanel.Tab tab) |
void |
setSelectedTab(TabbedPanel.Tab tab)
Sets the currently selected tab to the tab specified.
|
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 ElementId ELEMENT_ID
public TabbedPanel()
public TabbedPanel(java.lang.String style)
public TabbedPanel(ElementId elementId, java.lang.String style)
protected TabbedPanel(boolean applyStyles, ElementId elementId, java.lang.String style)
public <T extends Panel> T addTab(java.lang.String title, T contents)
public <T extends Panel> T insertTab(int index, java.lang.String title, T contents)
public TabbedPanel.Tab removeTab(TabbedPanel.Tab tab)
public java.util.List<TabbedPanel.Tab> getTabs()
public VersionedObject<TabbedPanel.Tab> getSelectionModel()
@StyleAttribute(value="activationColor", lookupDefault=false) public void setActivationColor(com.jme3.math.ColorRGBA color)
public com.jme3.math.ColorRGBA getActivationColor()
protected void refreshTabs()
public void setSelectedTab(TabbedPanel.Tab tab)
public TabbedPanel.Tab getSelectedTab()
protected void setDisplayedTab(TabbedPanel.Tab tab)
public void updateLogicalState(float tpf)
updateLogicalState
in class com.jme3.scene.Node