Interface Controls

All Superinterfaces:
Action, ActionListener, Control, EventListener

public interface Controls extends Control
A collection of controls and separators, note that these can be nested controls.
  • Field Details

  • Method Details

    • actions

      List<Action> actions()
      Returns:
      an unmodifiable view of the actions in this set
    • size

      int size()
      Returns:
      the number of controls in this controls instance
    • empty

      boolean empty()
      Returns:
      true if this controls instance contains no controls (ignoring separators)
    • notEmpty

      boolean notEmpty()
      Returns:
      true if this controls instance contains controls (ignoring separators)
    • get

      Action get(int index)
      Parameters:
      index - the index
      Returns:
      the action at the given index
    • copy

      Description copied from interface: Control
      Returns a new Control.Builder instance, based on a copy of this control.
      Specified by:
      copy in interface Control
      Returns:
      a new builder
    • controls

      static Controls controls(Action... actions)
      Constructs a new Controls instance.
      Parameters:
      actions - the actions
      Returns:
      a new Controls instance.
    • controls

      static Controls controls(Control... controls)
      Constructs a new Controls instance.
      Parameters:
      controls - the controls
      Returns:
      a new Controls instance.
    • builder

      static Controls.ControlsBuilder builder()
      Returns:
      a new Controls.ControlsBuilder instance
    • config

      static Controls.Config config(ControlSet controls, List<ControlId<?>> defaults)
      Parameters:
      controls - the available controls
      defaults - the default controls layout
      Returns:
      a new Config instance