Class PrintUnixDialog.Builder<B extends PrintUnixDialog.Builder<B>>

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

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

      public B setCurrentPage(int currentPage)
      The current page in the document.
      Parameters:
      currentPage - the value for the current-page property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setEmbedPageSetup

      public B setEmbedPageSetup(boolean embedPageSetup)
      true if the page setup controls are embedded.
      Parameters:
      embedPageSetup - the value for the embed-page-setup property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setHasSelection

      public B setHasSelection(boolean hasSelection)
      Whether the application has a selection.
      Parameters:
      hasSelection - the value for the has-selection property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setManualCapabilities

      public B setManualCapabilities(Set<PrintCapabilities> manualCapabilities)
      Capabilities the application can handle.
      Parameters:
      manualCapabilities - the value for the manual-capabilities property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setPageSetup

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

      public B setPrintSettings(PrintSettings printSettings)
      The GtkPrintSettings object used for this dialog.
      Parameters:
      printSettings - the value for the print-settings property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setSupportSelection

      public B setSupportSelection(boolean supportSelection)
      Whether the dialog supports selection.
      Parameters:
      supportSelection - the value for the support-selection property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setManualCapabilities

      public B setManualCapabilities(PrintCapabilities... manualCapabilities)
      Capabilities the application can handle.
      Parameters:
      manualCapabilities - the value for the manual-capabilities property
      Returns:
      the Builder instance is returned, to allow method chaining