Class ControlPanel
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.orderedlayout.HorizontalLayout
-
- org.ikasan.dashboard.ui.visualisation.component.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
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanasActionListenerprotected FlowcurrentFlowprotected Modulemoduleprotected org.ikasan.spec.module.client.ModuleControlServicemoduleControlRestServicestatic java.lang.StringPAUSEprotected com.vaadin.flow.component.button.ButtonpauseButtonstatic java.lang.StringSELECTstatic java.lang.StringSTARTstatic java.lang.StringSTART_PAUSEprotected com.vaadin.flow.component.button.ButtonstartButtonprotected com.vaadin.flow.component.button.ButtonstartPauseButtonstatic java.lang.StringSTOPprotected com.vaadin.flow.component.button.ButtonstopButton
-
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 voidonAttach(com.vaadin.flow.component.AttachEvent attachEvent)voidonChange(GraphViewChangeEvent event)Event occurs when a graph view change occurs.protected voidonDetach(com.vaadin.flow.component.DetachEvent detachEvent)protected voidperformAction(ProgressIndicatorDialog progressIndicatorDialog, java.lang.String action)protected voidperformFlowControlAction(java.lang.String action)voidsetEnabled(boolean enabled)protected voidsetFlowState(com.vaadin.flow.component.UI ui, FlowState flowState)voidsetFlowStatus(State state)voidsetVisible(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.ClickNotifier
addClickListener, addClickShortcut
-
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.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
-
-
-
-
Field Detail
-
START
public static final java.lang.String START
- See Also:
- Constant Field Values
-
STOP
public static final java.lang.String STOP
- See Also:
- Constant Field Values
-
PAUSE
public static final java.lang.String PAUSE
- See Also:
- Constant Field Values
-
START_PAUSE
public static final java.lang.String START_PAUSE
- See Also:
- Constant Field Values
-
SELECT
public static final java.lang.String SELECT
- See Also:
- Constant Field Values
-
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
-
-
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:
onAttachin classcom.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:
onDetachin classcom.vaadin.flow.component.Component
-
onChange
public void onChange(GraphViewChangeEvent event)
Description copied from interface:GraphViewChangeListenerEvent occurs when a graph view change occurs.- Specified by:
onChangein interfaceGraphViewChangeListener
-
setVisible
public void setVisible(boolean visible)
- Overrides:
setVisiblein classcom.vaadin.flow.component.Component
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabledin interfacecom.vaadin.flow.component.HasEnabled
-
-