Class PrintDialog.Builder<B extends PrintDialog.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
PrintDialog

public static class PrintDialog.Builder<B extends PrintDialog.Builder<B>> extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
Since:
4.14
  • Constructor Details

    • Builder

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

    • build

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

      public B setAcceptLabel(String acceptLabel)
      A label that may be shown on the accept button of a print dialog that is presented by PrintDialog.setup(Window, Cancellable, AsyncReadyCallback).
      Parameters:
      acceptLabel - the value for the accept-label property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.14
    • setModal

      public B setModal(boolean modal)
      Whether the print dialog is modal.
      Parameters:
      modal - the value for the modal property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.14
    • setPageSetup

      public B setPageSetup(PageSetup pageSetup)
      The page setup to use.
      Parameters:
      pageSetup - the value for the page-setup property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.14
    • setPrintSettings

      public B setPrintSettings(PrintSettings printSettings)
      The print settings to use.
      Parameters:
      printSettings - the value for the print-settings property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.14
    • setTitle

      public B setTitle(String title)
      A title that may be shown on the print dialog that is presented by PrintDialog.setup(Window, Cancellable, AsyncReadyCallback).
      Parameters:
      title - the value for the title property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.14