Package org.gnome.gdk
Class Seat.Builder<B extends Seat.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gdk.Seat.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
Seat
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theSeatobject.onDeviceAdded(Seat.DeviceAddedCallback handler) Emitted when a new input device is related to this seat.Emitted when an input device is removed (e.g.onToolAdded(Seat.ToolAddedCallback handler) Emitted whenever a new tool is made known to the seat.onToolRemoved(Seat.ToolRemovedCallback handler) Emitted whenever a tool is no longer known to thisseat.setDisplay(Display display) GdkDisplayof this seat.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 theSeatobject. 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 toSeat.- Overrides:
buildin classGObject.Builder<B extends Seat.Builder<B>>- Returns:
- a new instance of
Seatwith the properties that were set in the Builder object.
-
setDisplay
-
onDeviceAdded
Emitted when a new input device is related to this seat.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onDeviceRemoved
Emitted when an input device is removed (e.g. unplugged).- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onToolAdded
Emitted whenever a new tool is made known to the seat.The tool may later be assigned to a device (i.e. on proximity with a tablet). The device will emit the
Gdk.Device::tool-changedsignal accordingly.A same tool may be used by several devices.
- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onToolRemoved
Emitted whenever a tool is no longer known to thisseat.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-