Class HideItemsPopupProvider

java.lang.Object
com.illumon.iris.console.events.HideItemsPopupProvider
All Implemented Interfaces:
PopupProvider

public class HideItemsPopupProvider extends Object implements PopupProvider
Popup Provider to handle hiding Various combinations of columns. This is configured via the properties file and is not directly instantiated Hideable groups are configured as follows: IrisConsole.HideableItemColumnGroups=[Group 1];[Group 2];...;[Group N] where [Group N] := Column1,Column2,...,ColumnN This popup provider will wrap sub-items in a menu when the total number of items is larger than IrisConsole.HideableItemNestingThreshold (2 by default)
  • Constructor Details

    • HideItemsPopupProvider

      public HideItemsPopupProvider()
  • Method Details

    • getMenuItems

      public List<? extends JComponent> getMenuItems(GuiTable table, int column)
      Build a list of menu items for all of the configured Hideable column groups. If the list contains more than NESTING_THRESHOLD (IrisConsole.HideableItemNestingThreshold) it will place them in a submenu.
      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.