Class TransformSectionPanelViewModel
java.lang.Object
com.inductiveautomation.eventstream.designer.ui.viewmodel.SectionPanelViewModel
com.inductiveautomation.eventstream.designer.ui.viewmodel.transform.TransformSectionPanelViewModel
- All Implemented Interfaces:
ConfigViewModel<TransformConfig>, EnabledBindable, Disposable, ViewModel
public class TransformSectionPanelViewModel
extends SectionPanelViewModel
implements ConfigViewModel<TransformConfig>, EnabledBindable
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTransformSectionPanelViewModel(@Nullable EventStreamContext eventStreamContext, ScriptManager scriptManager) Lightweight constructor for demos and tests with no AI grounding.TransformSectionPanelViewModel(@Nullable EventStreamContext eventStreamContext, ScriptManager scriptManager, Supplier<String> callerContext, ToolBundle sampleTool) -
Method Summary
Modifier and TypeMethodDescription@Nullable DesignerContextThe Designer context backing this section, ornullwhen constructed without an Event Stream context (demos/tests).enabled()voidinitialize(EventStreamConfig config) voidinitialize(TransformConfig transform) voidsetEnabled(Boolean enabled) voidsetUserCode(String code) userCode()Methods inherited from class SectionPanelViewModel
clearDiagnostics, createFlowCell, dispose, flowCellData, getName, initialize, lastFlowCellData, onActivate, onDeactivate, onDiagnosticsData, sectionLabel, setFlowCellData, setSectionLabel, setSectionLabelDistinct, setStatus
-
Constructor Details
-
TransformSectionPanelViewModel
public TransformSectionPanelViewModel(@Nullable EventStreamContext eventStreamContext, ScriptManager scriptManager) Lightweight constructor for demos and tests with no AI grounding. -
TransformSectionPanelViewModel
public TransformSectionPanelViewModel(@Nullable EventStreamContext eventStreamContext, ScriptManager scriptManager, Supplier<String> callerContext, ToolBundle sampleTool) - Parameters:
callerContext- supplies the AI assist's framing for this surface, resolved live so it reflects the current source / encoder configuration (built byEventStreamConfigManagerfrom the grounding). Invoked on the EDT at prompt-submit time.sampleTool- the on-demand transform-sample tool the view installs on this section's AI assist.
-
-
Method Details
-
designerContext
The Designer context backing this section, ornullwhen constructed without an Event Stream context (demos/tests). The view uses it to mount the AI assist button. -
initialize
- Specified by:
initializein classSectionPanelViewModel
-
initialize
- Specified by:
initializein interfaceConfigViewModel<TransformConfig>
-
getConfig
- Specified by:
getConfigin interfaceConfigViewModel<TransformConfig>
-
setUserCode
-
setEnabled
-
callerContext
-
sampleTool
-
enabled
- Specified by:
enabledin interfaceEnabledBindable
-
userCode
-
compiledCode
-
compilationResultMessage
-
compilationState
public PropertyPublisherReadOnly<TransformSectionPanelViewModel.CompilationState> compilationState()
-