Class SwitchRow.Builder<B extends SwitchRow.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
Accessible.Builder<B>, Actionable.Builder<B>, BuilderInterface
Enclosing class:
SwitchRow

public static class SwitchRow.Builder<B extends SwitchRow.Builder<B>> extends ActionRow.Builder<B> implements Accessible.Builder<B>, Actionable.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
Since:
1.4
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public SwitchRow build()
      Finish building the SwitchRow object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to SwitchRow.
      Overrides:
      build in class ActionRow.Builder<B extends SwitchRow.Builder<B>>
      Returns:
      a new instance of SwitchRow with the properties that were set in the Builder object.
    • setActive

      public B setActive(boolean active)
      Whether the switch row is in the "on" or "off" position.
      Parameters:
      active - the value for the active property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.4