Class FileChooserNative.Builder<B extends FileChooserNative.Builder<B>>

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

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

      public B setAcceptLabel(String acceptLabel)
      The text used for the label on the accept button in the dialog, or null to use the default text.
      Parameters:
      acceptLabel - the value for the accept-label property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setCancelLabel

      public B setCancelLabel(String cancelLabel)
      The text used for the label on the cancel button in the dialog, or null to use the default text.
      Parameters:
      cancelLabel - the value for the cancel-label property
      Returns:
      the Builder instance is returned, to allow method chaining