Package tripleplay.ui
Class Behavior.Capturing<T extends Element<T>>
java.lang.Object
react.Slot<Object>
playn.scene.Pointer.Listener
tripleplay.ui.Behavior<T>
tripleplay.ui.Behavior.Select<T>
tripleplay.ui.Behavior.Click<T>
tripleplay.ui.Behavior.Capturing<T>
- All Implemented Interfaces:
react.Reactor.RListener
,react.SignalView.Listener<Object>
,react.ValueView.Listener<Object>
- Direct Known Subclasses:
Behavior.RapidFire
A click behavior that captures the pointer and optionally issues clicks based on some time
based function.
-
Nested Class Summary
Nested classes/interfaces inherited from class tripleplay.ui.Behavior
Behavior.Capturing<T extends Element<T>>, Behavior.Click<T extends Element<T>>, Behavior.Ignore<T extends Element<T>>, Behavior.RapidFire<T extends Element<T>>, Behavior.Select<T extends Element<T>>, Behavior.Toggle<T extends Element<T>>, Behavior.Track<T extends Element<T>>
-
Field Summary
Fields inherited from class tripleplay.ui.Behavior.Click
clicked, DEBOUNCE_DELAY
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onCancel
(Pointer.Interaction iact) void
onPress
(Pointer.Interaction iact) Called when the pointer is pressed down on our element.boolean
onRelease
(Pointer.Interaction iact) Called when the pointer is released after having been pressed on this widget.Methods inherited from class tripleplay.ui.Behavior.Click
click, layout, onClick
Methods inherited from class tripleplay.ui.Behavior.Select
onHover
Methods inherited from class tripleplay.ui.Behavior
onDrag, onEnd, onStart, soundAction
Methods inherited from class playn.scene.Pointer.Listener
onEmit
Methods inherited from class react.Slot
andThen, compose, filtered, onChange
-
Method Details
-
onPress
Description copied from class:Behavior
Called when the pointer is pressed down on our element.- Overrides:
onPress
in classBehavior.Click<T extends Element<T>>
-
onRelease
Description copied from class:Behavior
Called when the pointer is released after having been pressed on this widget. This should return true if the gesture is considered a click, in which caseBehavior.onClick(playn.scene.Pointer.Interaction)
will be called automatically.- Overrides:
onRelease
in classBehavior.Select<T extends Element<T>>
-
onCancel
- Overrides:
onCancel
in classBehavior.Select<T extends Element<T>>
-