Class WindowTitle.Builder<B extends WindowTitle.Builder<B>>

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

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

      public B setSubtitle(String subtitle)

      The subtitle to display.

      The subtitle should give the user additional details.

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

      public B setTitle(String title)

      The title to display.

      The title typically identifies the current view or content item, and generally does not use the application name.

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