Class Collapser

All Implemented Interfaces:
Cullable

public class Collapser extends WidgetGroup
  • Constructor Details

    • Collapser

      public Collapser(Cons<Table> cons, boolean collapsed)
    • Collapser

      public Collapser(Table table, boolean collapsed)
  • Method Details

    • setDuration

      public Collapser setDuration(float seconds)
    • setCollapsed

      public Collapser setCollapsed(Boolp collapsed)
    • setCollapsed

      public Collapser setCollapsed(boolean autoAnimate, Boolp collapsed)
    • toggle

      public void toggle()
    • toggle

      public void toggle(boolean animated)
    • setCollapsed

      public void setCollapsed(boolean collapse, boolean withAnimation)
    • setCollapsed

      public void setCollapsed(boolean collapse)
    • isCollapsed

      public boolean isCollapsed()
    • draw

      public void draw()
      Description copied from class: WidgetGroup
      If this method is overridden, the super method or WidgetGroup.validate() should be called to ensure the widget group is laid out.
      Overrides:
      draw in class WidgetGroup
    • act

      public void act(float delta)
      Description copied from class: Element
      Updates the actor based on time. Typically this is called each frame by Scene.act(float).

      The default implementation calls Action.act(float) on each action and removes actions that are complete.

      Overrides:
      act in class Group
      Parameters:
      delta - Time in seconds since the last frame.
    • layout

      public void layout()
      Description copied from class: Element
      Computes and caches any information needed for drawing and, if this actor has children, positions and sizes each child, calls Element.invalidate() on any each child whose width or height has changed, and calls Element.validate() on each child. This method should almost never be called directly, instead Element.validate() should be used.
      Overrides:
      layout in class WidgetGroup
    • getPrefWidth

      public float getPrefWidth()
      Overrides:
      getPrefWidth in class WidgetGroup
    • getPrefHeight

      public float getPrefHeight()
      Overrides:
      getPrefHeight in class WidgetGroup
    • setTable

      public void setTable(Table table)
    • getMinWidth

      public float getMinWidth()
      Overrides:
      getMinWidth in class WidgetGroup
    • getMinHeight

      public float getMinHeight()
      Overrides:
      getMinHeight in class WidgetGroup
    • childrenChanged

      protected void childrenChanged()
      Description copied from class: Group
      Called when actors are added to or removed from the group.
      Overrides:
      childrenChanged in class WidgetGroup