Class UIButtonGroup

All Implemented Interfaces:
UIContainer, UIContextActions, UIControlTarget, LXLoopTask, Iterable<UIObject>

public class UIButtonGroup extends UI2dContainer implements UIControlTarget, UIContextActions
  • Field Details

    • buttons

      public final UIButton[] buttons
  • Constructor Details

    • UIButtonGroup

      public UIButtonGroup(DiscreteParameter parameter, float x, float y, float w, float h)
    • UIButtonGroup

      public UIButtonGroup(DiscreteParameter parameter, float x, float y, float w, float h, boolean hideFirst)
  • Method Details

    • getDescription

      public String getDescription()
      Description copied from class: UIObject
      Objects are encouraged to override this method providing a helpful String displayed to the user explaining the function of this UI component. If no help is available, return null rather than an empty String.
      Overrides:
      getDescription in class UIObject
      Returns:
      Helpful contextual string explaining function of this element
    • getControlTarget

      public LXNormalizedParameter getControlTarget()
      Specified by:
      getControlTarget in interface UIControlTarget
    • getContextActions

      public List<UIContextActions.Action> getContextActions()
      Description copied from interface: UIContextActions
      Returns a list of context actions that should be shown for this item
      Specified by:
      getContextActions in interface UIContextActions
      Returns:
      List of context actions