Class AbstractHistoryPopupMenuItem<H extends adams.gui.core.AbstractNamedHistoryPanel,​T extends AbstractInvestigatorTab>

    • Constructor Detail

      • AbstractHistoryPopupMenuItem

        public AbstractHistoryPopupMenuItem()
    • Method Detail

      • setOwner

        public void setOwner​(T value)
        Sets the owner.
        Parameters:
        value - the owner
      • getOwner

        public T getOwner()
        Returns the owner.
        Returns:
        the owner
      • getCategory

        public abstract String getCategory()
        The category for grouping menu items.
        Returns:
        the group
      • getTitle

        public abstract String getTitle()
        The menu item title.
        Returns:
        the title
      • createMenuItem

        public abstract JMenuItem createMenuItem​(H history,
                                                 int[] indices)
        Creates the menu item to add to the history's popup menu.
        Parameters:
        history - the history panel this menu is for
        indices - the selected indices
        Returns:
        the menu item, null if failed to generate
      • updatePopupMenu

        public static void updatePopupMenu​(adams.gui.core.AbstractNamedHistoryPanel history,
                                           AbstractInvestigatorTab owner,
                                           int[] indices,
                                           JPopupMenu menu,
                                           Class superclass)
        Updates the menu for the specified superclass of menu items.
        Parameters:
        history - the history panel
        indices - the currently selected indices
        menu - the menu to update
        superclass - the superclass for the menu items