Interface ControlsBuilder

All Superinterfaces:
ControlBuilder<Controls,ControlsBuilder>, Supplier<Controls>

public interface ControlsBuilder extends ControlBuilder<Controls,ControlsBuilder>
A builder for Controls
  • Method Details

    • control

      ControlsBuilder control(Control control)
      Parameters:
      control - the control to add to this controls instance
      Returns:
      this Builder instance
    • control

      ControlsBuilder control(Supplier<? extends Control> control)
      Parameters:
      control - the control to add to this controls instance
      Returns:
      this Builder instance
    • controlAt

      ControlsBuilder controlAt(int index, Control control)
      Parameters:
      index - the index at which to add the control
      control - the control to add to this controls instance
      Returns:
      this Builder instance
    • controlAt

      ControlsBuilder controlAt(int index, Supplier<? extends Control> control)
      Parameters:
      index - the index at which to add the control
      control - the control to add to this controls instance
      Returns:
      this Builder instance
    • controls

      ControlsBuilder controls(Control... controls)
      Parameters:
      controls - the controls to add
      Returns:
      this Builder instance
    • controls

      ControlsBuilder controls(Collection<? extends Control> controls)
      Parameters:
      controls - the controls to add
      Returns:
      this Builder instance
    • controls

      ControlsBuilder controls(Supplier<? extends Control>... controls)
      Parameters:
      controls - the controls to add
      Returns:
      this Builder instance
    • action

      ControlsBuilder action(Action action)
      Parameters:
      action - the Action to add to this controls instance
      Returns:
      this Builder instance
    • actionAt

      ControlsBuilder actionAt(int index, Action action)
      Parameters:
      index - the index at which to add the action
      action - the Action to add to this controls instance
      Returns:
      this Builder instance
    • actions

      ControlsBuilder actions(Action... actions)
      Parameters:
      actions - the Actions to add to this controls instance
      Returns:
      this Builder instance
    • actions

      ControlsBuilder actions(Collection<Action> actions)
      Parameters:
      actions - the Actions to add to this controls instance
      Returns:
      this Builder instance
    • separator

      ControlsBuilder separator()
      Adds a separator to the Controls
      Returns:
      this Builder instance
    • separatorAt

      ControlsBuilder separatorAt(int index)
      Adds a separator to the Controls
      Parameters:
      index - the index at which to insert the separator
      Returns:
      this Builder instance
    • remove

      ControlsBuilder remove(Action action)
      Parameters:
      action - the action to remove
      Returns:
      this Builder instance
    • removeAll

      ControlsBuilder removeAll()
      Removes all actions from this controls builder instance
      Returns:
      this Builder instance