Class FlowProcessor

    • Field Detail

      • m_PanelWidget

        protected BasePanel m_PanelWidget
        the widget.
      • m_PanelFlow

        protected FlowPanel m_PanelFlow
        the flow panel.
      • m_ButtonNew

        protected BaseButton m_ButtonNew
        the "new flow" button.
      • m_ButtonLoad

        protected BaseButton m_ButtonLoad
        the "load flow" button.
      • m_ButtonSave

        protected BaseButton m_ButtonSave
        the "save flow" button.
      • m_ButtonCheck

        protected BaseButton m_ButtonCheck
        the "check flow" button.
      • m_ButtonRun

        protected BaseButton m_ButtonRun
        the "run flow" button.
      • m_FileChooserFlow

        protected FlowFileChooser m_FileChooserFlow
        the file chooser for the flows.
    • Constructor Detail

      • FlowProcessor

        public FlowProcessor()
    • Method Detail

      • newFlow

        protected void newFlow()
        Replaces the current flow snippet with an empty one.
      • loadFlow

        protected void loadFlow()
        Allows the user to load a flow snippet.
      • saveFlow

        protected void saveFlow()
        Allows the user to save the current flow snippet.
      • checkFlow

        protected boolean checkFlow​(boolean silent)
        Checks the flow.
        Parameters:
        silent - only pops up a dialog if invalid flow
        Returns:
        true if flow ok
      • runFlow

        protected void runFlow()
        Runs the flow.
      • setCurrentFlow

        public void setCurrentFlow​(Actor value)
        Sets the flow.
        Parameters:
        value - the flow
      • getCurrentFlow

        public Actor getCurrentFlow()
        Returns the flow.
        Returns:
        the flow
      • assign

        public void assign​(AbstractWidget other)
        Retrieves the values from the other widget, if possible.
        Specified by:
        assign in class AbstractWidget
        Parameters:
        other - the other widget to get the values from
      • serialize

        public Object serialize()
        Serializes the setup from the widget.
        Specified by:
        serialize in class AbstractWidget
        Returns:
        the generated setup representation
      • deserialize

        public void deserialize​(Object data,
                                MessageCollection errors)
        Deserializes the setup and maps it onto the widget. /** Deserializes the setup and maps it onto the widget.
        Specified by:
        deserialize in class AbstractWidget
        Parameters:
        data - the setup representation to use
        errors - for collecting errors