Class BrowserKeyInput
-
- All Implemented Interfaces:
public final class BrowserKeyInputPress a key or key chord. Use "+" to combine modifiers with a key (e.g. "ctrl+a", "cmd+shift+p") and space to sequence presses (e.g. "Backspace Backspace Delete"). Common names like "Return", "Tab", "Escape", "BackSpace" are supported.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBrowserKeyInput.BuilderA builder for BrowserKeyInput.
-
Method Summary
Modifier and Type Method Description final Stringtext()The key, chord, or space-separated sequence to press. final Optional<Long>repeat()Number of times to repeat. final Optional<String>tabId()Tab to act on. final JsonField<String>_text()Returns the raw JSON value of text. final JsonField<Long>_repeat()Returns the raw JSON value of repeat. final JsonField<String>_tabId()Returns the raw JSON value of tabId. final Map<String, JsonValue>_additionalProperties()final BrowserKeyInput.BuildertoBuilder()final BrowserKeyInputvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BrowserKeyInput.Builderbuilder()Returns a mutable builder for constructing an instance of BrowserKeyInput. final static BrowserKeyInputof(String text)Returns an immutable instance of BrowserKeyInput with the required text set to the given value. -
-
Method Detail
-
_text
final JsonField<String> _text()
Returns the raw JSON value of text.
Unlike text, this method doesn't throw if the JSON field has an unexpected type.
-
_repeat
final JsonField<Long> _repeat()
Returns the raw JSON value of repeat.
Unlike repeat, this method doesn't throw if the JSON field has an unexpected type.
-
_tabId
final JsonField<String> _tabId()
Returns the raw JSON value of tabId.
Unlike tabId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BrowserKeyInput.Builder toBuilder()
-
validate
final BrowserKeyInput 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 BrowserKeyInput.Builder builder()
Returns a mutable builder for constructing an instance of BrowserKeyInput.
The following fields are required:
.text()
-
of
final static BrowserKeyInput of(String text)
Returns an immutable instance of BrowserKeyInput with the required text set to the given value.
-
-
-
-