Class ComputerAction.Drag
-
- All Implemented Interfaces:
public final class ComputerAction.DragA drag action.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classComputerAction.Drag.BuilderA builder for Drag.
public final classComputerAction.Drag.PathAn x/y coordinate pair, e.g.
{ x: 100, y: 200 }.
-
Method Summary
Modifier and Type Method Description final List<ComputerAction.Drag.Path>path()An array of coordinates representing the path of the drag action. final JsonValue_type()Specifies the event type. final Optional<List<String>>keys()The keys being held while dragging the mouse. final JsonField<List<ComputerAction.Drag.Path>>_path()Returns the raw JSON value of path. final JsonField<List<String>>_keys()Returns the raw JSON value of keys. final Map<String, JsonValue>_additionalProperties()final ComputerAction.Drag.BuildertoBuilder()final ComputerAction.Dragvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ComputerAction.Drag.Builderbuilder()Returns a mutable builder for constructing an instance of Drag. -
-
Method Detail
-
path
final List<ComputerAction.Drag.Path> path()
An array of coordinates representing the path of the drag action. Coordinates will appear as an array of objects, eg
[ { x: 100, y: 200 }, { x: 200, y: 300 } ]
-
_type
final JsonValue _type()
Specifies the event type. For a drag action, this property is always set to
drag.Expected to always return the following:
JsonValue.from("drag")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_path
final JsonField<List<ComputerAction.Drag.Path>> _path()
Returns the raw JSON value of path.
Unlike path, this method doesn't throw if the JSON field has an unexpected type.
-
_keys
final JsonField<List<String>> _keys()
Returns the raw JSON value of keys.
Unlike keys, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ComputerAction.Drag.Builder toBuilder()
-
validate
final ComputerAction.Drag validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ComputerAction.Drag.Builder builder()
Returns a mutable builder for constructing an instance of Drag.
The following fields are required:
.path()
-
-
-
-