Class AppChooserDialog.Builder<B extends AppChooserDialog.Builder<B>>

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

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

      public B setGfile(File gfile)

      The GFile used by the GtkAppChooserDialog.

      The dialog's GtkAppChooserWidget content type will be guessed from the file, if present.

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

      public B setHeading(String heading)

      The text to show at the top of the dialog.

      The string may contain Pango markup.

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