Package org.gnome.gdk
Class Display.Builder<B extends Display.Builder<B>>
java.lang.Object
org.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theDisplayobject.onClosed(Display.ClosedCallback handler) Emitted when the connection to the windowing system fordisplayis closed.onOpened(Display.OpenedCallback handler) Emitted when the connection to the windowing system fordisplayis 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
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theDisplayobject. 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:
buildin classGObject.Builder<B extends Display.Builder<B>>- Returns:
- a new instance of
Displaywith the properties that were set in the Builder object.
-
onClosed
Emitted when the connection to the windowing system fordisplayis closed.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onOpened
Emitted when the connection to the windowing system fordisplayis opened.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance 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
Builderinstance 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
Builderinstance is returned, to allow method chaining - See Also:
-
onSettingChanged
Emitted whenever a setting changes its value.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-