Class Monitor.Builder<B extends Monitor.Builder<B>>

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

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

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

      public B onInvalidate(Monitor.InvalidateCallback handler)
      Emitted when the output represented by monitor gets disconnected.
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also: