Class RollupPanel

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

public class RollupPanel extends Panel
A panel that expands or collapses its contents based on pressing a title bar button.
  • Constructor Details

  • Method Details

    • setupCommands

      protected final void setupCommands()
    • setContents

      public void setContents(Panel p)
      Resets the child contents that will be expanded/collapsed with the rollup.
    • getContents

      public Panel getContents()
      Returns the panel that is expaned and collapsed during rollup.
    • setTitle

      public void setTitle(String titleString)
      Sets the title that appears in the title bar button.
    • getTitle

      public String getTitle()
      Returns the string that appears in the title bar button.
    • getTitleElement

      public Button getTitleElement()
      Returns the title bar button.
    • getTitleContainer

      public Container 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

      public void setOpenModel(CheckboxModel cm)
      Sets the checkbox model used to determine open/close state.
    • getOpenModel

      public CheckboxModel 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 the update() method for all controls attached to this Spatial.
      Overrides:
      updateLogicalState in class Node
      Parameters:
      tpf - Time per frame.
      See Also:
    • resetOpen

      protected void resetOpen()