Class StatusPage.Builder<B extends StatusPage.Builder<B>>

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

public static class StatusPage.Builder<B extends StatusPage.Builder<B>> extends Widget.Builder<B> implements Accessible.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

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

    • build

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

      public B setChild(Widget child)
      The child widget.
      Parameters:
      child - the value for the child property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setDescription

      public B setDescription(String description)
      The description markup to be displayed below the title.
      Parameters:
      description - the value for the description property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setIconName

      public B setIconName(String iconName)

      The name of the icon to be used.

      Changing this will set StatusPage:paintable to NULL.

      Parameters:
      iconName - the value for the icon-name property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setPaintable

      public B setPaintable(Paintable paintable)

      The paintable to be used.

      Changing this will set StatusPage:icon-name to NULL.

      Parameters:
      paintable - the value for the paintable property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setTitle

      public B setTitle(String title)

      The title to be displayed below the icon.

      It is not parsed as Pango markup.

      Parameters:
      title - the value for the title property
      Returns:
      the Builder instance is returned, to allow method chaining