Class HandlerSectionPanelViewModel
java.lang.Object
com.inductiveautomation.eventstream.designer.ui.viewmodel.SectionPanelViewModel
com.inductiveautomation.eventstream.designer.ui.viewmodel.handler.HandlerSectionPanelViewModel
- All Implemented Interfaces:
ConfigViewModel<List<HandlerConfig>>, Titler, Disposable, ViewModel
public class HandlerSectionPanelViewModel
extends SectionPanelViewModel
implements Titler, ConfigViewModel<List<HandlerConfig>>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHandlerSectionPanelViewModel(EventStreamContext context, EventStreamAiContext aiContext, HandlerRegistry registry) -
Method Summary
Modifier and TypeMethodDescriptionaddNewHandler(HandlerDesignDelegateInfo delegate) getConfig(boolean stopEditing) protected EventStreamContextMethods provides a mean for theEventStreamContextsupplied here to be mocked.handlers()voidinitialize(EventStreamConfig config) voidinitialize(List<HandlerConfig> handlers) protected voidvoidsetHandlerEnabled(boolean enabled) voidsetSelectedHandler(HandlerEditorInfo handler) title()Methods inherited from class SectionPanelViewModel
clearDiagnostics, createFlowCell, dispose, flowCellData, getName, initialize, lastFlowCellData, onActivate, onDeactivate, sectionLabel, setFlowCellData, setSectionLabel, setSectionLabelDistinct, setStatus
-
Field Details
-
selectedHandler
-
-
Constructor Details
-
HandlerSectionPanelViewModel
public HandlerSectionPanelViewModel(EventStreamContext context, EventStreamAiContext aiContext, HandlerRegistry registry) - Parameters:
aiContext- the grounding handed to handler editors that implementEventStreamAiHandler, which isEventStreamAiContext.NONEin demos and tests
-
-
Method Details
-
initialize
- Specified by:
initializein classSectionPanelViewModel
-
initialize
- Specified by:
initializein interfaceConfigViewModel<List<HandlerConfig>>
-
getConfig
- Specified by:
getConfigin interfaceConfigViewModel<List<HandlerConfig>>
-
getConfig
-
getEventStreamContext
Methods provides a mean for theEventStreamContextsupplied here to be mocked. For this reason the wrapped variable should not be accessed directly. -
getFailureHandlerViewModel
-
setSelectedHandler
-
addNewHandler
-
setHandlerEnabled
public void setHandlerEnabled(boolean enabled) -
onDiagnosticsData
- Overrides:
onDiagnosticsDatain classSectionPanelViewModel
-
title
-
handlerOptions
-
handlers
-
selectedHandler
-
deleteButtonEnabled
-
handlerEnabled
-
getAddRemoveBindingSource
-
getReorderBindingSource
-
initializationCount
-