Class TabbedPanel

All Implemented Interfaces:
HasLocalTransform, CloneableSmartAsset, Collidable, Savable, JmeCloneable, Cloneable

public class TabbedPanel extends Panel
A very simple tabbed panel element that presents a set of button "tabs" at the top that can select different child content.
  • Field Details

    • ELEMENT_ID

      public static final ElementId ELEMENT_ID
  • Constructor Details

    • TabbedPanel

      public TabbedPanel()
    • TabbedPanel

      public TabbedPanel(String style)
    • TabbedPanel

      public TabbedPanel(ElementId elementId, String style)
    • TabbedPanel

      protected TabbedPanel(boolean applyStyles, ElementId elementId, String style)
  • Method Details

    • addTab

      public <T extends Panel> T addTab(String title, T contents)
      Adds the specified contents as a new tab using the specified title.
    • insertTab

      public <T extends Panel> T insertTab(int index, String title, T contents)
      Inserts the specified contents as a new tab using the specified title inserted at the specified index.
    • removeTab

      public TabbedPanel.Tab removeTab(TabbedPanel.Tab tab)
      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

      public List<TabbedPanel.Tab> getTabs()
      Returns a read-only list of the Tabs contained in this tabbed panel.
    • getSelectionModel

      public VersionedObject<TabbedPanel.Tab> 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

      public ColorRGBA getActivationColor()
      Returns the text color used for activated tabs.
    • refreshTabs

      protected void refreshTabs()
    • setSelectedTab

      public void setSelectedTab(TabbedPanel.Tab tab)
      Sets the currently selected tab to the tab specified.
    • getSelectedTab

      public TabbedPanel.Tab getSelectedTab()
      Returns the currently selected tab.
    • setDisplayedTab

      protected void setDisplayedTab(TabbedPanel.Tab tab)
    • updateLogicalState

      public void updateLogicalState(float tpf)
      Description copied from class: Spatial
      updateLogicalState calls the update() method for all controls attached to this Spatial.
      Overrides:
      updateLogicalState in class Node
      Parameters:
      tpf - Time per frame.
      See Also: