Class AbstractInteractiveTransformerDialog

    • Field Detail

      • m_ShortTitle

        protected boolean m_ShortTitle
        whether to use just the actor name or the full name as title.
      • m_Width

        protected int m_Width
        the width of the dialog.
      • m_Height

        protected int m_Height
        the height of the dialog.
      • m_X

        protected int m_X
        the X position of the dialog.
      • m_Y

        protected int m_Y
        the Y position of the dialog.
      • m_Panel

        protected BasePanel m_Panel
        the panel to display.
      • m_Dialog

        protected BaseDialog m_Dialog
        the dialog that's being displayed.
      • m_StopFlowIfCanceled

        protected boolean m_StopFlowIfCanceled
        whether to stop the flow if canceled.
      • m_CustomStopMessage

        protected String m_CustomStopMessage
        the custom stop message to use if flow gets stopped due to cancelation.
      • m_StopMode

        protected StopMode m_StopMode
        how to perform the stop.
      • m_LastPosition

        protected transient Point m_LastPosition
        the last position.
      • m_LastSize

        protected transient Dimension m_LastSize
        the last dimension.
    • Constructor Detail

      • AbstractInteractiveTransformerDialog

        public AbstractInteractiveTransformerDialog()
    • Method Detail

      • getDefaultX

        protected int getDefaultX()
        Returns the default X position for the dialog.
        Returns:
        the default X position
      • getDefaultY

        protected int getDefaultY()
        Returns the default Y position for the dialog.
        Returns:
        the default Y position
      • getDefaultWidth

        protected int getDefaultWidth()
        Returns the default width for the dialog.
        Returns:
        the default width
      • getDefaultHeight

        protected int getDefaultHeight()
        Returns the default height for the dialog.
        Returns:
        the default height
      • setShortTitle

        public void setShortTitle​(boolean value)
        Sets whether to use just the name of the actor or the full name.
        Parameters:
        value - if true just the name will get used, otherwise the full name
      • getShortTitle

        public boolean getShortTitle()
        Returns whether to use just the name of the actor or the full name.
        Returns:
        true if just the name used, otherwise full name
      • shortTitleTipText

        public String shortTitleTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setWidth

        public void setWidth​(int value)
        Sets the width of the dialog.
        Parameters:
        value - the width
      • getWidth

        public int getWidth()
        Returns the currently set width of the dialog.
        Returns:
        the width
      • widthTipText

        public String widthTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setHeight

        public void setHeight​(int value)
        Sets the height of the dialog.
        Parameters:
        value - the height
      • getHeight

        public int getHeight()
        Returns the currently set height of the dialog.
        Returns:
        the height
      • heightTipText

        public String heightTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setX

        public void setX​(int value)
        Sets the X position of the dialog.
        Parameters:
        value - the X position
      • getX

        public int getX()
        Returns the currently set X position of the dialog.
        Returns:
        the X position
      • xTipText

        public String xTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setY

        public void setY​(int value)
        Sets the Y position of the dialog.
        Parameters:
        value - the Y position
      • getY

        public int getY()
        Returns the currently set Y position of the dialog.
        Returns:
        the Y position
      • yTipText

        public String yTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setStopFlowIfCanceled

        public void setStopFlowIfCanceled​(boolean value)
        Sets whether to stop the flow if dialog canceled.
        Specified by:
        setStopFlowIfCanceled in interface InteractiveActor
        Parameters:
        value - if true flow gets stopped if dialog canceled
      • getStopFlowIfCanceled

        public boolean getStopFlowIfCanceled()
        Returns whether to stop the flow if dialog canceled.
        Specified by:
        getStopFlowIfCanceled in interface InteractiveActor
        Returns:
        true if the flow gets stopped if dialog canceled
      • stopFlowIfCanceledTipText

        public String stopFlowIfCanceledTipText()
        Returns the tip text for this property.
        Specified by:
        stopFlowIfCanceledTipText in interface InteractiveActor
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setCustomStopMessage

        public void setCustomStopMessage​(String value)
        Sets the custom message to use when stopping the flow.
        Specified by:
        setCustomStopMessage in interface InteractiveActor
        Parameters:
        value - the stop message
      • getCustomStopMessage

        public String getCustomStopMessage()
        Returns the custom message to use when stopping the flow.
        Specified by:
        getCustomStopMessage in interface InteractiveActor
        Returns:
        the stop message
      • customStopMessageTipText

        public String customStopMessageTipText()
        Returns the tip text for this property.
        Specified by:
        customStopMessageTipText in interface InteractiveActor
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • stopModeTipText

        public String stopModeTipText()
        Returns the tip text for this property.
        Specified by:
        stopModeTipText in interface StopModeSupporter
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • reset

        protected void reset()
        Resets the object. Removes graphical components as well.
        Overrides:
        reset in class AbstractActor
      • clearPanel

        public abstract void clearPanel()
        Clears the content of the panel.
      • newPanel

        protected abstract BasePanel newPanel()
        Creates the panel to display in the dialog.
        Returns:
        the panel
      • getPanel

        public BasePanel getPanel()
        Returns the panel.
        Returns:
        the panel, null if not available
      • createTitle

        protected String createTitle()
        Creates a title for the dialog. Default implementation only returns the full name of the actor.
        Returns:
        the title of the dialog
      • preCreateDialog

        protected void preCreateDialog​(BasePanel panel)
        Hook method before the dialog gets created.

        Default implementation does nothing.
        Parameters:
        panel - the panel to display in the dialog
      • doCreateDialog

        protected BaseDialog doCreateDialog​(BasePanel panel)
        Creates the actual dialog.
        Parameters:
        panel - the panel to display in the dialog
        Returns:
        the created dialog
      • postCreateDialog

        protected void postCreateDialog​(BaseDialog dialog,
                                        BasePanel panel)
        Hook method after the dialog got created.

        Default implementation does nothing.
        Parameters:
        dialog - the dialog that got just created
        panel - the panel displayed in the frame
      • createDialog

        protected BaseDialog createDialog​(BasePanel panel)
        Creates and initializes a dialog with the just created panel.
        Parameters:
        panel - the panel to use in the dialog
        Returns:
        the created dialog
      • getDialog

        public BaseDialog getDialog()
        Returns the dialog.
        Returns:
        the dialog, null if not available
      • registerWindow

        protected void registerWindow​(Window window,
                                      String title)
        Registers the window with the flow.
        Parameters:
        window - the window
        title - the title
      • deregisterWindow

        protected void deregisterWindow​(Window window)
        Deregisters the window with the flow.
        Parameters:
        window - the window
      • doInteract

        public String doInteract()
        Performs the interaction with the user.

        Default implementation simply displays the dialog and returns always null.
        Specified by:
        doInteract in interface InteractiveActor
        Returns:
        null if successfully interacted, otherwise error message
      • supportsHeadlessInteraction

        public boolean supportsHeadlessInteraction()
        Returns whether headless interaction is supported.
        Specified by:
        supportsHeadlessInteraction in interface InteractiveActor
        Returns:
        true if interaction in headless environment is possible
      • doInteractHeadless

        public String doInteractHeadless()
        Performs the interaction with the user in a headless environment.
        Default implementation always returns null.
        Specified by:
        doInteractHeadless in interface InteractiveActor
        Returns:
        null if successfully interacted, otherwise error message
      • doExecute

        protected String doExecute()
        Executes the flow item.
        Specified by:
        doExecute in class AbstractActor
        Returns:
        null if everything is fine, otherwise error message
      • cleanUpGUI

        protected void cleanUpGUI()
        Removes all graphical components.