Package org.gnome.gdk
Class DeviceTool.Builder<B extends DeviceTool.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gdk.DeviceTool.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
DeviceTool
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theDeviceTool
object.The axes of the tool.The axes of the tool.setHardwareId
(long hardwareId) The hardware ID of the tool.setSerial
(long serial) The serial number of the tool.setToolType
(DeviceToolType toolType) The type of the tool.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 theDeviceTool
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 toDeviceTool
.- Overrides:
build
in classGObject.Builder<B extends DeviceTool.Builder<B>>
- Returns:
- a new instance of
DeviceTool
with the properties that were set in the Builder object.
-
setAxes
-
setHardwareId
The hardware ID of the tool.- Parameters:
hardwareId
- the value for thehardware-id
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setSerial
The serial number of the tool.- Parameters:
serial
- the value for theserial
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setToolType
The type of the tool.- Parameters:
toolType
- the value for thetool-type
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setAxes
-