Class Container

All Implemented Interfaces:
HasLocalTransform, CloneableSmartAsset, Collidable, Savable, JmeCloneable, Cloneable
Direct Known Subclasses:
NContainer, NMultiPageList, NQrViewer, NTextInput, NToast, NWindow

public class Container extends Panel
A special type of Panel that is preconfigured to hold children using a layout.
  • Field Details

  • Constructor Details

  • Method Details

    • initializeDefaultStyles

      public static void initializeDefaultStyles(Attributes attrs)
    • addChild

      public <T extends Node> T addChild(T child, Object... constraints)
    • removeChild

      public void removeChild(Node child)
    • clearChildren

      public void clearChildren()
    • detachChildAt

      public Spatial detachChildAt(int index)
      Description copied from class: Node
      detachChildAt removes a child at a given index. That child is returned for saving purposes.
      Overrides:
      detachChildAt in class Node
      Parameters:
      index - the index of the child to be removed.
      Returns:
      the child at the supplied index.
    • setLayout

      @StyleAttribute(value="layout", lookupDefault=false) public void setLayout(GuiLayout layout)
    • getLayout

      public GuiLayout getLayout()
    • toString

      public String toString()
      Description copied from class: Spatial
      Returns the Spatial's name followed by the class of the spatial
      Example: "MyNode (com.jme3.scene.Spatial)"
      Overrides:
      toString in class Panel
      Returns:
      Spatial's name followed by the class of the Spatial