Package org.gnome.gtk
Class GestureSingle.Builder<B extends GestureSingle.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.EventController.Builder<B>
org.gnome.gtk.Gesture.Builder<B>
org.gnome.gtk.GestureSingle.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Direct Known Subclasses:
DragSource.Builder,GestureClick.Builder,GestureDrag.Builder,GestureLongPress.Builder,GestureStylus.Builder,GestureSwipe.Builder
- Enclosing class:
GestureSingle
public static class GestureSingle.Builder<B extends GestureSingle.Builder<B>>
extends Gesture.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theGestureSingleobject.setButton(int button) Mouse button number to listen to, or 0 to listen for any button.setExclusive(boolean exclusive) Whether the gesture is exclusive.setTouchOnly(boolean touchOnly) Whether the gesture handles only touch events.Methods inherited from class org.gnome.gtk.Gesture.Builder
onBegin, onCancel, onEnd, onSequenceStateChanged, onUpdate, setNPointsMethods inherited from class org.gnome.gtk.EventController.Builder
setName, setPropagationLimit, setPropagationPhaseMethods 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 theGestureSingleobject. 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 toGestureSingle.- Overrides:
buildin classGesture.Builder<B extends GestureSingle.Builder<B>>- Returns:
- a new instance of
GestureSinglewith the properties that were set in the Builder object.
-
setButton
Mouse button number to listen to, or 0 to listen for any button.- Parameters:
button- the value for thebuttonproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setExclusive
Whether the gesture is exclusive.Exclusive gestures only listen to pointer and pointer emulated events.
- Parameters:
exclusive- the value for theexclusiveproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setTouchOnly
Whether the gesture handles only touch events.- Parameters:
touchOnly- the value for thetouch-onlyproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-