Class Clipboard.Builder<B extends Clipboard.Builder<B>>

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

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

      public B setDisplay(Display display)
      The GdkDisplay that the clipboard belongs to.
      Parameters:
      display - the value for the display property
      Returns:
      the Builder instance is returned, to allow method chaining
    • onChanged

      public B onChanged(Clipboard.ChangedCallback handler)
      Emitted when the clipboard changes ownership.
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also: