Package com.teamdev.jxbrowser.ui.event
Class TouchStarted.Builder
java.lang.Object
com.teamdev.jxbrowser.ui.event.TouchStarted.Builder
- Enclosing interface:
- TouchStarted
A builder of
TouchStarted.
Builders are created by invoking TouchStarted.newBuilder(List)}.
Each of the setter methods modifies the state of the builder and returns the same instance.
Builders are not thread-safe and should not be used concurrently from multiple threads
without external synchronization.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a newTouchStartedinstance on top of this builder.changedTouches(List<TouchPoint> points) Sets the touch points that became active with the current event.keyModifiers(KeyModifiers keyModifiers) Sets the keyboard modifiers to apply.targetTouches(List<TouchPoint> points) Sets the touch points that started on the target element of this event.
-
Method Details
-
changedTouches
Sets the touch points that became active with the current event.- Parameters:
points- the touch points- Returns:
- this builder
-
targetTouches
Sets the touch points that started on the target element of this event.- Parameters:
points- the touch points- Returns:
- this builder
-
keyModifiers
Sets the keyboard modifiers to apply.- Parameters:
keyModifiers- the keyboard modifiers- Returns:
- this builder
-
build
Creates a newTouchStartedinstance on top of this builder.- Returns:
- a new
TouchStartedinstance
-