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, HandlerRegistry registry) -
Method Summary
Modifier and TypeMethodDescriptionaddNewHandler
(HandlerDesignDelegateInfo delegate) getConfig
(boolean stopEditing) protected EventStreamContext
Methods provides a mean for theEventStreamContext
supplied here to be mocked.handlers()
void
initialize
(EventStreamConfig config) void
initialize
(List<HandlerConfig> handlers) protected void
void
setHandlerEnabled
(boolean enabled) void
setSelectedHandler
(HandlerEditorInfo handler) title()
Methods inherited from class com.inductiveautomation.eventstream.designer.ui.viewmodel.SectionPanelViewModel
clearDiagnostics, createFlowCell, dispose, flowCellData, getName, initialize, lastFlowCellData, onActivate, onDeactivate, sectionLabel, setFlowCellData, setSectionLabel, setSectionLabelDistinct, setStatus
-
Field Details
-
selectedHandler
-
-
Constructor Details
-
HandlerSectionPanelViewModel
-
-
Method Details
-
initialize
- Specified by:
initialize
in classSectionPanelViewModel
-
initialize
- Specified by:
initialize
in interfaceConfigViewModel<List<HandlerConfig>>
-
getConfig
- Specified by:
getConfig
in interfaceConfigViewModel<List<HandlerConfig>>
-
getConfig
-
getEventStreamContext
Methods provides a mean for theEventStreamContext
supplied 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:
onDiagnosticsData
in classSectionPanelViewModel
-
title
-
handlerOptions
-
handlers
-
selectedHandler
-
deleteButtonEnabled
-
handlerEnabled
-
getAddRemoveBindingSource
-
getReorderBindingSource
-
initializationCount
-