Package com.illumon.iris.console.events
Class HideItemsPopupProvider
java.lang.Object
com.illumon.iris.console.events.HideItemsPopupProvider
- All Implemented Interfaces:
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)
-
Field Summary
Fields inherited from interface com.illumon.iris.gui.widget.PopupProvider
NULL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<? extends JComponent>
getMenuItems
(GuiTable table, int column) Build a list of menu items for all of the configured Hideable column groups.
-
Constructor Details
-
HideItemsPopupProvider
public HideItemsPopupProvider()
-
-
Method Details
-
getMenuItems
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 interfacePopupProvider
- Parameters:
table
- The table that was clickedcolumn
- The column index in Model space- Returns:
- A list of menu items to add to the popup menu.
-