Record Class EventScriptTabState
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.designer.scripteditor.workspace.ai.EventScriptTabState
- Record Components:
editor- the script editor's text and selection.descriptor- the extension function's signature, ornullbefore the panel has one.support- the tab's trigger-configuration contract, ornullfor a tab with none.enabled- whether the script is enabled, ornullfor a tab that pins its checkbox.
@NullMarked
public record EventScriptTabState(TextlikeComponent.TextEditorState editor, @Nullable com.inductiveautomation.ignition.common.script.typing.ExtensionFunctionDescriptor descriptor, @Nullable TriggerConfigSupport<?> support, @Nullable Boolean enabled)
extends Record
An event-script tab as the assistant sees it, taken fresh at each read — the popup is non-modal,
so nothing may be cached across submits.
-
Constructor Summary
ConstructorsConstructorDescriptionEventScriptTabState(TextlikeComponent.TextEditorState editor, @Nullable com.inductiveautomation.ignition.common.script.typing.ExtensionFunctionDescriptor descriptor, @Nullable TriggerConfigSupport<?> support, @Nullable Boolean enabled) Creates an instance of aEventScriptTabStaterecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable com.inductiveautomation.ignition.common.script.typing.ExtensionFunctionDescriptorReturns the value of thedescriptorrecord component.editor()Returns the value of theeditorrecord component.@Nullable Booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable TriggerConfigSupport<?> support()Returns the value of thesupportrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EventScriptTabState
public EventScriptTabState(TextlikeComponent.TextEditorState editor, @Nullable com.inductiveautomation.ignition.common.script.typing.ExtensionFunctionDescriptor descriptor, @Nullable TriggerConfigSupport<?> support, @Nullable Boolean enabled) Creates an instance of aEventScriptTabStaterecord class.- Parameters:
editor- the value for theeditorrecord componentdescriptor- the value for thedescriptorrecord componentsupport- the value for thesupportrecord componentenabled- the value for theenabledrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
editor
-
descriptor
public @Nullable com.inductiveautomation.ignition.common.script.typing.ExtensionFunctionDescriptor descriptor()Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-
support
-
enabled
-