Class FlowControlCenterPanel

    • Field Detail

      • m_Properties

        protected static Properties m_Properties
        the properties.
      • m_TitleGenerator

        protected TitleGenerator m_TitleGenerator
        for generating the title.
      • m_MenuBar

        protected JMenuBar m_MenuBar
        the menu bar, if used.
      • m_MenuItemFileNew

        protected JMenuItem m_MenuItemFileNew
        the "new" menu item.
      • m_MenuItemFileOpen

        protected JMenuItem m_MenuItemFileOpen
        the "open" menu item.
      • m_MenuItemFileOpenRecent

        protected JMenu m_MenuItemFileOpenRecent
        the "open recent" menu.
      • m_MenuItemFileSave

        protected JMenuItem m_MenuItemFileSave
        the "save" menu item.
      • m_MenuItemFileSaveAs

        protected JMenuItem m_MenuItemFileSaveAs
        the "save as" menu item.
      • m_MenuItemFileRevert

        protected JMenuItem m_MenuItemFileRevert
        the "rever" menu item.
      • m_MenuItemFileClose

        protected JMenuItem m_MenuItemFileClose
        the "exit" menu item.
      • m_CurrentFile

        protected File m_CurrentFile
        the filename of the current flow.
      • m_FileChooser

        protected BaseFileChooser m_FileChooser
        the filedialog for loading/saving flows.
      • m_TableModelSetups

        protected FlowSetupTableModel m_TableModelSetups
        the table model for the setups.
      • m_ButtonAdd

        protected BaseButton m_ButtonAdd
        the button for adding a setup.
      • m_ButtonEdit

        protected BaseButton m_ButtonEdit
        the button for editing a setup.
      • m_ButtonEditFlow

        protected BaseButton m_ButtonEditFlow
        the button for editing a flow directly.
      • m_ButtonStart

        protected BaseButton m_ButtonStart
        the button for starting setups.
      • m_ButtonPauseAndResume

        protected BaseButton m_ButtonPauseAndResume
        the button for pausing/resuming setups.
      • m_ButtonStop

        protected BaseButton m_ButtonStop
        the button for stopping setups.
      • m_ButtonMoveUp

        protected BaseButton m_ButtonMoveUp
        the button for moving the selected setups up.
      • m_ButtonMoveDown

        protected BaseButton m_ButtonMoveDown
        the button for moving the selected setups down.
      • m_ButtonRemove

        protected BaseButton m_ButtonRemove
        the button for removing a setup.
      • m_ButtonRemoveAll

        protected BaseButton m_ButtonRemoveAll
        the button for removing all setups.
      • m_FilenameProposer

        protected FilenameProposer m_FilenameProposer
        for proposing filenames for new flows.
    • Constructor Detail

      • FlowControlCenterPanel

        public FlowControlCenterPanel()
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        initialize in class BasePanel
      • initGUI

        protected void initGUI()
        Initializes the widgets.
        initGUI in class BasePanel
      • showTablePopup

        protected void showTablePopup​(MouseEvent e)
        Displays a popup for the table.
        e - the mouse event that triggered the popup
      • addSetup

        protected void addSetup()
        Adds a setup.
      • editSetup

        protected void editSetup()
        Edits the selected setup.
      • editFlow

        protected void editFlow()
        Edits the selected flow.
      • startSetups

        protected void startSetups()
        Starts the selected setups.
      • pauseAndResumeSetups

        protected void pauseAndResumeSetups()
        Pauses/resumes the selected setups.
      • stopSetups

        protected void stopSetups()
        Stops the selected setups.
      • moveRows

        protected void moveRows​(boolean up)
        Moves the selected rows and updates the selection.
        up - if true then the selected rows are moved up, otherwise down
      • removeSetups

        protected void removeSetups()
        Removes the selected setups.
      • removeAllSetups

        protected void removeAllSetups()
        Removes all setups.
      • getMenuBar

        public JMenuBar getMenuBar()
        Creates a menu bar (singleton per panel object). Can be used in frames.
        Specified by:
        getMenuBar in interface MenuBarProvider
        the menu bar
      • getGOEDialog

        protected GenericObjectEditorDialog getGOEDialog()
        Initializes the GOE dialog if necessary and returns the instance.
        the GOE dialog
      • undoOccurred

        public void undoOccurred​(UndoEvent e)
        An undo event occurred.
        e - the event
      • update

        protected void update()
        updates the enabled state etc. of all the GUI elements.
      • getTitleGenerator

        public TitleGenerator getTitleGenerator()
        Returns the title generator in use.
        the generator
      • updateTitle

        protected void updateTitle()
        Updates the title of the dialog.
      • updateButtons

        protected void updateButtons()
        Updates the buttons.
      • updateMenu

        protected void updateMenu()
        updates the enabled state of the menu items.
      • checkForModified

        protected boolean checkForModified()
        Returns whether we can proceed with the operation or not, depending on whether the user saved the flow or discarded the changes.
        true if safe to proceed
      • cleanUp

        protected void cleanUp()
        Cleans up.
      • reset

        protected void reset()
        Resets the GUI to default values.
      • getCurrentFile

        public File getCurrentFile()
        Returns the current file in use.
        the current file, can be null
      • load

        public void load​(File file)
        Loads a setup.
        file - the setup to load
      • open

        protected void open()
        Opens a setup.
      • revert

        protected void revert()
        Reverts a setup.
      • save

        protected void save()
        Saves the setup.
      • saveAs

        protected void saveAs()
        Saves the setups.
      • close

        protected void close()
        Closes the dialog or frame.
      • showMessage

        protected void showMessage​(String msg)
        Displays the given message in a separate dialog.
        msg - the message to display
      • tableChanged

        public void tableChanged​(TableModelEvent e)
        This fine grain notification tells listeners the exact range of cells, rows, or columns that changed.
        Specified by:
        tableChanged in interface TableModelListener
        e - the event