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 TypeMethodDescriptionvoidonCancel(Pointer.Interaction iact) voidonPress(Pointer.Interaction iact) Called when the pointer is pressed down on our element.booleanonRelease(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, onClickMethods inherited from class tripleplay.ui.Behavior.Select
onHoverMethods inherited from class tripleplay.ui.Behavior
onDrag, onEnd, onStart, soundActionMethods inherited from class playn.scene.Pointer.Listener
onEmitMethods inherited from class react.Slot
andThen, compose, filtered, onChange
-
Method Details
-
onPress
Description copied from class:BehaviorCalled when the pointer is pressed down on our element.- Overrides:
onPressin classBehavior.Click<T extends Element<T>>
-
onRelease
Description copied from class:BehaviorCalled 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:
onReleasein classBehavior.Select<T extends Element<T>>
-
onCancel
- Overrides:
onCancelin classBehavior.Select<T extends Element<T>>
-