Class ApplicationCommandLine.Builder<B extends ApplicationCommandLine.Builder<B>>

java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gio.ApplicationCommandLine.Builder<B>
Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
ApplicationCommandLine

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

      public B setArguments(Variant arguments)
      The commandline that caused this Gio.Application::command-line signal emission.
      Parameters:
      arguments - the value for the arguments property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.28
    • setOptions

      public B setOptions(Variant options)
      The options sent along with the commandline.
      Parameters:
      options - the value for the options property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.28
    • setPlatformData

      public B setPlatformData(Variant platformData)
      Platform-specific data for the commandline.
      Parameters:
      platformData - the value for the platform-data property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.28