Interface HeaderPopupProvider

All Superinterfaces:
PopupProvider
All Known Implementing Classes:
ConfigHeaderPopupProvider, CustomTableActions, FormatHeaderPopupProvider, PlottingHeaderPopupProvider, RollupHeaderPopupProvider

public interface HeaderPopupProvider
extends PopupProvider

An extension of PopupProvider that provides menu items when a table header is right clicked.

This interface provides a default implementation of PopupProvider.getMenuItems(GuiTable, int) which returns an empty list of items.

  • Field Summary

    Fields inherited from interface com.illumon.iris.gui.widget.PopupProvider

    NULL
  • Method Summary

    Modifier and Type Method Description
    List<? extends JComponent> getHeaderMenuItems​(GuiTable table, int column)
    Get a list of menu items to add to the default right click menu.
    default List<? extends JComponent> getMenuItems​(GuiTable table, int column)
    Get a list of menu items to add to the popup.
  • Method Details

    • getHeaderMenuItems

      List<? extends JComponent> getHeaderMenuItems​(GuiTable table, int column)
      Get a list of menu items to add to the default right click menu.
      Parameters:
      table - The table that was right clicked.
      column - The column that was right clicked.
    • getMenuItems

      default List<? extends JComponent> getMenuItems​(GuiTable table, int column)
      Description copied from interface: PopupProvider
      Get a list of menu items to add to the popup.
      Specified by:
      getMenuItems in interface PopupProvider
      Parameters:
      table - The table that was clicked
      column - The column index in Model space
      Returns:
      A list of menu items to add to the popup menu.