Package org.gnome.gdk
Class Display.Builder<B extends Display.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gdk.Display.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
Display
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theDisplay
object.onClosed
(Display.ClosedCallback handler) Emitted when the connection to the windowing system fordisplay
is closed.onOpened
(Display.OpenedCallback handler) Emitted when the connection to the windowing system fordisplay
is opened.onSeatAdded
(Display.SeatAddedCallback handler) Emitted whenever a new seat is made known to the windowing system.onSeatRemoved
(Display.SeatRemovedCallback handler) Emitted whenever a seat is removed by the windowing system.Emitted whenever a setting changes its value.Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theDisplay
object. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])
to create a new GObject instance, which is then cast toDisplay
.- Overrides:
build
in classGObject.Builder<B extends Display.Builder<B>>
- Returns:
- a new instance of
Display
with the properties that were set in the Builder object.
-
onClosed
Emitted when the connection to the windowing system fordisplay
is closed.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onOpened
Emitted when the connection to the windowing system fordisplay
is opened.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onSeatAdded
Emitted whenever a new seat is made known to the windowing system.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onSeatRemoved
Emitted whenever a seat is removed by the windowing system.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onSettingChanged
Emitted whenever a setting changes its value.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-