Class ControlPanel

  • All Implemented Interfaces:
    com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.orderedlayout.HorizontalLayout>, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasOrderedComponents<com.vaadin.flow.component.orderedlayout.HorizontalLayout>, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.orderedlayout.FlexComponent<com.vaadin.flow.component.orderedlayout.HorizontalLayout>, com.vaadin.flow.component.orderedlayout.ThemableLayout, java.io.Serializable, GraphViewChangeListener
    Direct Known Subclasses:
    MultiFlowControlPanel

    public class ControlPanel
    extends com.vaadin.flow.component.orderedlayout.HorizontalLayout
    implements GraphViewChangeListener
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.vaadin.flow.component.orderedlayout.FlexComponent

        com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment, com.vaadin.flow.component.orderedlayout.FlexComponent.JustifyContentMode
    • Constructor Summary

      Constructors 
      Constructor Description
      ControlPanel​(org.ikasan.spec.module.client.ModuleControlService moduleControlRestService)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> asButtonClickedListener()  
      protected void onAttach​(com.vaadin.flow.component.AttachEvent attachEvent)  
      void onChange​(GraphViewChangeEvent event)
      Event occurs when a graph view change occurs.
      protected void onDetach​(com.vaadin.flow.component.DetachEvent detachEvent)  
      protected void performAction​(ProgressIndicatorDialog progressIndicatorDialog, java.lang.String action)  
      protected void performFlowControlAction​(java.lang.String action)  
      void setEnabled​(boolean enabled)  
      protected void setFlowState​(com.vaadin.flow.component.UI ui, FlowState flowState)  
      void setFlowStatus​(State state)  
      void setVisible​(boolean visible)  
      • Methods inherited from class com.vaadin.flow.component.orderedlayout.HorizontalLayout

        addAndExpand, getAlignItems, getAlignSelf, getDefaultVerticalComponentAlignment, getVerticalComponentAlignment, setAlignItems, setAlignSelf, setDefaultVerticalComponentAlignment, setSpacing, setVerticalComponentAlignment
      • Methods inherited from class com.vaadin.flow.component.Component

        addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onEnabledStateChanged, set, setElement, setId
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.vaadin.flow.component.AttachNotifier

        addAttachListener
      • Methods inherited from interface com.vaadin.flow.component.ClickNotifier

        addClickListener, addClickShortcut
      • Methods inherited from interface com.vaadin.flow.component.DetachNotifier

        addDetachListener
      • Methods inherited from interface com.vaadin.flow.component.orderedlayout.FlexComponent

        expand, getFlexGrow, getJustifyContentMode, replace, setFlexGrow, setJustifyContentMode
      • Methods inherited from interface com.vaadin.flow.component.HasComponents

        add, add, addComponentAsFirst, addComponentAtIndex, remove, removeAll
      • Methods inherited from interface com.vaadin.flow.component.HasElement

        getElement
      • Methods inherited from interface com.vaadin.flow.component.HasEnabled

        isEnabled
      • Methods inherited from interface com.vaadin.flow.component.HasOrderedComponents

        getChildren, getComponentAt, getComponentCount, indexOf
      • Methods inherited from interface com.vaadin.flow.component.HasSize

        getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, setHeight, setHeightFull, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidthFull
      • Methods inherited from interface com.vaadin.flow.component.HasStyle

        addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
      • Methods inherited from interface com.vaadin.flow.component.orderedlayout.ThemableLayout

        getBoxSizing, getThemeList, isMargin, isPadding, isSpacing, setBoxSizing, setMargin, setPadding
    • Field Detail

      • moduleControlRestService

        protected org.ikasan.spec.module.client.ModuleControlService moduleControlRestService
      • startButton

        protected com.vaadin.flow.component.button.Button startButton
      • stopButton

        protected com.vaadin.flow.component.button.Button stopButton
      • pauseButton

        protected com.vaadin.flow.component.button.Button pauseButton
      • startPauseButton

        protected com.vaadin.flow.component.button.Button startPauseButton
      • module

        protected Module module
      • currentFlow

        protected Flow currentFlow
      • asActionListener

        protected boolean asActionListener
    • Constructor Detail

      • ControlPanel

        public ControlPanel​(org.ikasan.spec.module.client.ModuleControlService moduleControlRestService)
    • Method Detail

      • setFlowStatus

        public void setFlowStatus​(State state)
      • asButtonClickedListener

        public com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> asButtonClickedListener()
      • performFlowControlAction

        protected void performFlowControlAction​(java.lang.String action)
      • performAction

        protected void performAction​(ProgressIndicatorDialog progressIndicatorDialog,
                                     java.lang.String action)
      • onAttach

        protected void onAttach​(com.vaadin.flow.component.AttachEvent attachEvent)
        Overrides:
        onAttach in class com.vaadin.flow.component.Component
      • setFlowState

        protected void setFlowState​(com.vaadin.flow.component.UI ui,
                                    FlowState flowState)
      • onDetach

        protected void onDetach​(com.vaadin.flow.component.DetachEvent detachEvent)
        Overrides:
        onDetach in class com.vaadin.flow.component.Component
      • setVisible

        public void setVisible​(boolean visible)
        Overrides:
        setVisible in class com.vaadin.flow.component.Component
      • setEnabled

        public void setEnabled​(boolean enabled)
        Specified by:
        setEnabled in interface com.vaadin.flow.component.HasEnabled