Class AssociateTab.HistoryPanel

    • Field Detail

      • m_ModelFileChooser

        protected adams.gui.chooser.BaseFileChooser m_ModelFileChooser
        the file chooser for models.
    • Constructor Detail

      • HistoryPanel

        public HistoryPanel​(AssociateTab owner)
        Initializes the history.
        Parameters:
        owner - the owning tab
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        Overrides:
        initialize in class adams.gui.core.AbstractNamedHistoryPanel<ResultItem>
      • createHistoryEntryToolTip

        public String createHistoryEntryToolTip​(adams.gui.core.AbstractNamedHistoryPanel<ResultItem> history,
                                                int index)
        Gets called when a tooltip needs to get generated.
        Specified by:
        createHistoryEntryToolTip in interface adams.gui.core.AbstractNamedHistoryPanel.HistoryEntryToolTipProvider<ResultItem>
        Parameters:
        history - the history
        index - the index in the history
        Returns:
        the generated tool tip, null if not available
      • setToolTipsEnabled

        public void setToolTipsEnabled​(boolean value)
        Sets whether to show tool tips.
        Parameters:
        value - true if to show
      • getToolTipsEnabled

        public boolean getToolTipsEnabled()
        Returns whether to show tool tips.
        Returns:
        true if to show
      • clear

        public void clear()
        Removes all entries and payloads.
        Overrides:
        clear in class adams.gui.core.AbstractNamedHistoryPanel<ResultItem>
      • removeEntry

        public ResultItem removeEntry​(String name)
        Removes the specified entry.
        Overrides:
        removeEntry in class adams.gui.core.AbstractNamedHistoryPanel<ResultItem>
        Parameters:
        name - the name of the entry
        Returns:
        the entry that was stored under this name or null if no entry was stored with this name
      • updateEntry

        protected void updateEntry​(String name)
        Displays the specified entry.
        Specified by:
        updateEntry in class adams.gui.core.AbstractNamedHistoryPanel<ResultItem>
        Parameters:
        name - the name of the entry, can be null to empty display
      • saveModel

        protected void saveModel​(ResultItem item)
        Saves the model to a file.
        Parameters:
        item - the result item to use
      • regenerateOutput

        protected void regenerateOutput​(ResultItem item)
        Regenerates the output.
        Parameters:
        item - the result item to use
      • configureOutput

        protected AbstractOutputGenerator configureOutput​(AbstractOutputGenerator generator)
        Prompts the user with a GOE for configuring the output generator and returns it if accepted.
        Parameters:
        generator - the generator to customize
        Returns:
        the customized generator, null if cancelled
      • generateOutput

        protected void generateOutput​(AbstractOutputGenerator generator,
                                      ResultItem item)
        Prompts the user with a GOE for configuring the output generator and then generates the output.
        Parameters:
        generator - the generator to use customize
        item - the result item to use
      • compareOutput

        protected void compareOutput​(AbstractOutputGenerator generator,
                                     int[] indices)
        Prompts the user with a GOE for configuring the output generator and then displays the generated outputs side by side.
        Parameters:
        generator - the generator to use customize
        indices - the indices of the items to display
      • createPopup

        protected adams.gui.core.BasePopupMenu createPopup​(MouseEvent e)
        Generates the right-click menu for the JList.
        Overrides:
        createPopup in class adams.gui.core.AbstractNamedHistoryPanel<ResultItem>
        Parameters:
        e - the event that triggered the popup
        Returns:
        the generated menu
        See Also:
        AbstractNamedHistoryPanel.showPopup(MouseEvent)