Record Class KeyEventTriggerConfig
java.lang.Object
java.lang.Record
com.inductiveautomation.perspective.designer.workspace.scriptseditor.ai.config.KeyEventTriggerConfig
public record KeyEventTriggerConfig(KeyEvent.EventMode mode, @Nullable KeyEvent.EventBound binding, @Nullable String key, @Nullable String code, @Nullable String regexPattern, @Nullable Integer regexWindow, boolean alt, boolean control, boolean shift, boolean meta)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKeyEventTriggerConfig(KeyEvent.EventMode mode, @Nullable KeyEvent.EventBound binding, @Nullable String key, @Nullable String code, @Nullable String regexPattern, @Nullable Integer regexWindow, boolean alt, boolean control, boolean shift, boolean meta) Creates an instance of aKeyEventTriggerConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanalt()Returns the value of thealtrecord component.@Nullable KeyEvent.EventBoundbinding()Returns the value of thebindingrecord component.@Nullable Stringcode()Returns the value of thecoderecord component.booleancontrol()Returns the value of thecontrolrecord component.final booleanIndicates whether some other object is "equal to" this one.static KeyEventTriggerConfigfromKeyEvent(KeyEvent keyEvent) final inthashCode()Returns a hash code value for this object.@Nullable Stringkey()Returns the value of thekeyrecord component.booleanmeta()Returns the value of themetarecord component.mode()Returns the value of themoderecord component.@Nullable StringReturns the value of theregexPatternrecord component.@Nullable IntegerReturns the value of theregexWindowrecord component.booleanshift()Returns the value of theshiftrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SCHEMA
-
-
Constructor Details
-
KeyEventTriggerConfig
public KeyEventTriggerConfig(KeyEvent.EventMode mode, @Nullable KeyEvent.EventBound binding, @Nullable String key, @Nullable String code, @Nullable String regexPattern, @Nullable Integer regexWindow, boolean alt, boolean control, boolean shift, boolean meta) Creates an instance of aKeyEventTriggerConfigrecord class.- Parameters:
mode- the value for themoderecord componentbinding- the value for thebindingrecord componentkey- the value for thekeyrecord componentcode- the value for thecoderecord componentregexPattern- the value for theregexPatternrecord componentregexWindow- the value for theregexWindowrecord componentalt- the value for thealtrecord componentcontrol- the value for thecontrolrecord componentshift- the value for theshiftrecord componentmeta- the value for themetarecord component
-
-
Method Details
-
fromKeyEvent
-
applyTo
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
binding
Returns the value of thebindingrecord component.- Returns:
- the value of the
bindingrecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
regexPattern
Returns the value of theregexPatternrecord component.- Returns:
- the value of the
regexPatternrecord component
-
regexWindow
Returns the value of theregexWindowrecord component.- Returns:
- the value of the
regexWindowrecord component
-
alt
public boolean alt()Returns the value of thealtrecord component.- Returns:
- the value of the
altrecord component
-
control
public boolean control()Returns the value of thecontrolrecord component.- Returns:
- the value of the
controlrecord component
-
shift
public boolean shift()Returns the value of theshiftrecord component.- Returns:
- the value of the
shiftrecord component
-
meta
public boolean meta()Returns the value of themetarecord component.- Returns:
- the value of the
metarecord component
-