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 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 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:
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
-