Package org.gnome.gtk
Class GestureClick.Builder<B extends GestureClick.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>
org.gnome.gtk.GestureClick.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
GestureClick
public static class GestureClick.Builder<B extends GestureClick.Builder<B>>
extends GestureSingle.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theGestureClickobject.onPressed(GestureClick.PressedCallback handler) Emitted whenever a button or touch press happens.onReleased(GestureClick.ReleasedCallback handler) Emitted when a button or touch is released.onStopped(GestureClick.StoppedCallback handler) Emitted whenever any time/distance threshold has been exceeded.Emitted whenever the gesture receives a release event that had no previous corresponding press.Methods inherited from class org.gnome.gtk.GestureSingle.Builder
setButton, setExclusive, setTouchOnlyMethods 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 theGestureClickobject. 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 toGestureClick.- Overrides:
buildin classGestureSingle.Builder<B extends GestureClick.Builder<B>>- Returns:
- a new instance of
GestureClickwith the properties that were set in the Builder object.
-
onPressed
Emitted whenever a button or touch press happens.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onReleased
Emitted when a button or touch is released.nPresswill report the number of press that is paired to this event, note thatGtk.GestureClick::stoppedmay have been emitted between the press and its release,nPresswill only start over at the next press.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onStopped
Emitted whenever any time/distance threshold has been exceeded.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onUnpairedRelease
Emitted whenever the gesture receives a release event that had no previous corresponding press.Due to implicit grabs, this can only happen on situations where input is grabbed elsewhere mid-press or the pressed widget voluntarily relinquishes its implicit grab.
- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-