Package org.gnome.gdk
Class DeviceTool.Builder<B extends DeviceTool.Builder<B>>
java.lang.Object
org.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theDeviceToolobject.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
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 theDeviceToolobject. 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:
buildin classGObject.Builder<B extends DeviceTool.Builder<B>>- Returns:
- a new instance of
DeviceToolwith the properties that were set in the Builder object.
-
setAxes
-
setHardwareId
The hardware ID of the tool.- Parameters:
hardwareId- the value for thehardware-idproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setSerial
The serial number of the tool.- Parameters:
serial- the value for theserialproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setToolType
The type of the tool.- Parameters:
toolType- the value for thetool-typeproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setAxes
-