Class ComputerScrollInput.Builder
-
- All Implemented Interfaces:
public final class ComputerScrollInput.BuilderA builder for ComputerScrollInput.
-
-
Method Summary
-
-
Method Detail
-
scrollAmount
final ComputerScrollInput.Builder scrollAmount(Long scrollAmount)
Number of 'clicks' of the scroll wheel.
-
scrollAmount
final ComputerScrollInput.Builder scrollAmount(JsonField<Long> scrollAmount)
Sets Builder.scrollAmount to an arbitrary JSON value.
You should usually call Builder.scrollAmount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
scrollDirection
final ComputerScrollInput.Builder scrollDirection(ComputerScrollDirection scrollDirection)
-
scrollDirection
final ComputerScrollInput.Builder scrollDirection(JsonField<ComputerScrollDirection> scrollDirection)
Sets Builder.scrollDirection to an arbitrary JSON value.
You should usually call Builder.scrollDirection with a well-typed ComputerScrollDirection value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
coordinate
final ComputerScrollInput.Builder coordinate(List<Long> coordinate)
(x, y): x pixels from the left edge, y pixels from the top edge.
-
coordinate
final ComputerScrollInput.Builder coordinate(Optional<List<Long>> coordinate)
Alias for calling Builder.coordinate with
coordinate.orElse(null).
-
coordinate
final ComputerScrollInput.Builder coordinate(JsonField<List<Long>> coordinate)
Sets Builder.coordinate to an arbitrary JSON value.
You should usually call Builder.coordinate with a well-typed
List<Long>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
text
final ComputerScrollInput.Builder text(String text)
Optional key combination to hold down during this action (e.g. "ctrl", "shift", "ctrl+shift").
-
text
final ComputerScrollInput.Builder text(Optional<String> text)
Alias for calling Builder.text with
text.orElse(null).
-
text
final ComputerScrollInput.Builder text(JsonField<String> text)
Sets Builder.text to an arbitrary JSON value.
You should usually call Builder.text with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ComputerScrollInput.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addCoordinate
final ComputerScrollInput.Builder addCoordinate(Long coordinate)
Adds a single Long to Builder.coordinate.
-
putAdditionalProperty
final ComputerScrollInput.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ComputerScrollInput.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ComputerScrollInput.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ComputerScrollInput.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ComputerScrollInput build()
Returns an immutable instance of ComputerScrollInput.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.scrollAmount() .scrollDirection()
-
-
-
-