Package org.gnome.gtk
Class EventControllerScroll.Builder<B extends EventControllerScroll.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.EventControllerScroll.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
EventControllerScroll
public static class EventControllerScroll.Builder<B extends EventControllerScroll.Builder<B>>
extends EventController.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theEventControllerScrollobject.Emitted after scroll is finished if theEventControllerScrollFlags.KINETICflag is set.Signals that the widget should scroll by the amount specified bydxanddy.Signals that a new scrolling operation has begun.Signals that a scrolling operation has finished.setFlags(Set<EventControllerScrollFlags> flags) The flags affecting event controller behavior.setFlags(EventControllerScrollFlags... flags) The flags affecting event controller behavior.Methods 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 theEventControllerScrollobject. 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 toEventControllerScroll.- Overrides:
buildin classEventController.Builder<B extends EventControllerScroll.Builder<B>>- Returns:
- a new instance of
EventControllerScrollwith the properties that were set in the Builder object.
-
setFlags
The flags affecting event controller behavior.- Parameters:
flags- the value for theflagsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setFlags
The flags affecting event controller behavior.- Parameters:
flags- the value for theflagsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
onDecelerate
Emitted after scroll is finished if theEventControllerScrollFlags.KINETICflag is set.velXandvelYexpress the initial velocity that was imprinted by the scroll events.velXandvelYare expressed in pixels/ms.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onScroll
Signals that the widget should scroll by the amount specified bydxanddy.For the representation unit of the deltas, see
EventControllerScroll.getUnit().- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onScrollBegin
Signals that a new scrolling operation has begun.It will only be emitted on devices capable of it.
- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onScrollEnd
Signals that a scrolling operation has finished.It will only be emitted on devices capable of it.
- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-