Class UICollapsibleSection

All Implemented Interfaces:
UIContainer, UIMouseFocus, LXLoopTask, Iterable<UIObject>
Direct Known Subclasses:
UIAudio, UICamera, UIComponentManager, UIDmxManager, UIEnvelop, UIFixtureErrors, UIFixtureInspector, UIFixtureManager, UIMidiInputs, UIMidiMappings, UIMidiSurfaces, UIModelInspector, UIOscManager, UIOutputManager, UIPackageManager, UIPalette, UIPluginManager, UIReaper, UISnapshots, UISoundStageManager, UIViews

public class UICollapsibleSection extends UI2dContainer implements UIMouseFocus
Section with a title which can collapse/expand
  • Field Details

  • Constructor Details

    • UICollapsibleSection

      public UICollapsibleSection(UI ui, float x, float y, float w, float h)
      Constructs a new collapsible section
      Parameters:
      ui - UI
      x - Xpos
      y - Ypos
      w - Width
      h - Height
  • Method Details

    • isExpanded

      public boolean isExpanded()
    • setTitleX

      protected UICollapsibleSection setTitleX(float x)
    • setTitle

      public UICollapsibleSection setTitle(String title)
      Sets the title of the section
      Parameters:
      title - Title
      Returns:
      this
    • drawHorizontalExpansionTriangle

      public static void drawHorizontalExpansionTriangle(UI ui, VGraphics vg, boolean expanded)
    • onDraw

      public void onDraw(UI ui, VGraphics vg)
      Description copied from class: UI2dComponent
      Subclasses should override this method to perform their drawing functions.
      Overrides:
      onDraw in class UI2dContainer
      Parameters:
      ui - UI context
      vg - Graphics context
    • toggle

      public UICollapsibleSection toggle()
      Toggles the expansion state of the section
      Returns:
      this
    • setExpanded

      public UICollapsibleSection setExpanded(boolean expanded)
      Sets the expanded state of this section
      Parameters:
      expanded - Whether section is expanded
      Returns:
      this
    • onMousePressed

      public void onMousePressed(MouseEvent mouseEvent, float mx, float my)
      Description copied from class: UIEventHandler
      Subclasses override to receive mouse events
      Overrides:
      onMousePressed in class UIEventHandler
      Parameters:
      mouseEvent - Mouse event
      mx - x-coordinate
      my - y-coordinate
    • onKeyPressed

      public void onKeyPressed(KeyEvent keyEvent, char keyChar, int keyCode)
      Description copied from class: UIEventHandler
      Subclasses override to receive key events
      Overrides:
      onKeyPressed in class UI2dContainer
      Parameters:
      keyEvent - Key event
      keyChar - Key character
      keyCode - Key code value
    • getContentTarget

      public UI2dContainer getContentTarget()
      Description copied from class: UI2dContainer
      Returns the object that elements are added to when placed in this container. In most cases, it will be "this" - but some elements have special subcontainers.
      Specified by:
      getContentTarget in interface UIContainer
      Overrides:
      getContentTarget in class UI2dContainer
      Returns:
      Element
    • controlRow

      protected UI2dContainer controlRow(UI ui, String label, UI2dComponent control)