Class PerFoldMultiPagePane

  • All Implemented Interfaces:
    adams.core.CleanUpHandler, adams.gui.core.UISettingsSupporter, ImageObserver, MenuContainer, Serializable, Accessible

    public class PerFoldMultiPagePane
    extends adams.gui.core.MultiPagePane
    Specialized multi-page pane for managing per-fold data.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • PerFoldMultiPagePane

        public PerFoldMultiPagePane​(AbstractOutputGenerator generator,
                                    ResultItem item,
                                    Class uiclass)
        Initializes the pane.
        Parameters:
        generator - the output generator that generated this pane
        item - the underlying result item
        uiclass - the class the divider location is stored under
    • Method Detail

      • getItem

        public ResultItem getItem()
        Returns the underlying result item.
        Returns:
        the item
      • getOutputGenerator

        public AbstractOutputGenerator getOutputGenerator()
        Returns the underlying output generator.
        Returns:
        the generator
      • addPage

        public void addPage​(String title,
                            Component comp,
                            int fold)
        Adds the page at the end.
        Parameters:
        title - the title
        comp - the page component
        fold - the fold, -1 for non-fold related page, 0 for full, 1-* for fold indices
      • createPopup

        protected adams.gui.core.BasePopupMenu createPopup​(MouseEvent e)
        Generates the right-click menu for the JList.

        Derived classes should override this method instead of making use of the PopupCustomizer.
        Overrides:
        createPopup in class adams.gui.core.MultiPagePane
        Parameters:
        e - the event that triggered the popup
        Returns:
        the generated menu
        See Also:
        MultiPagePane.showPopup(MouseEvent)