Class ColumnPreviewPopupProvider
java.lang.Object
com.illumon.iris.console.events.preview.ColumnPreviewPopupProvider
- All Implemented Interfaces:
PopupProvider
Pops up a right click menu for Preview Tables, allowing the user to show a window displaying the full data from
the preview.
-
Field Summary
Fields inherited from interface com.illumon.iris.gui.widget.PopupProvider
NULL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
copyUnmodifiedCellDataToClipboard
(GuiTable table, int row, int columnIndex) Copies an unmodified (no preview) cell of data to the clipboard.List<? extends JComponent>
getMenuItems
(GuiTable table, int columnIndex) Get a list of menu items to add to the popup.static boolean
hasArrayPreview
(DBTableModel model) Indicates if a DBTableModel includes any Array Preview columnsstatic boolean
isArrayPreviewColumn
(GuiTable table, int column) Indicates if a column in a GuiTable is an Array Preview Column
-
Constructor Details
-
ColumnPreviewPopupProvider
public ColumnPreviewPopupProvider(com.fishlib.io.logger.Logger log)
-
-
Method Details
-
getMenuItems
Description copied from interface:PopupProvider
Get a list of menu items to add to the popup.- Specified by:
getMenuItems
in interfacePopupProvider
- Parameters:
table
- The table that was clickedcolumnIndex
- The column index in Model space- Returns:
- A list of menu items to add to the popup menu.
-
hasArrayPreview
Indicates if a DBTableModel includes any Array Preview columns- Parameters:
model
- the model which shall be checked for preview column(s)- Returns:
- true if it contains an array preview column, false otherwise
-
isArrayPreviewColumn
Indicates if a column in a GuiTable is an Array Preview Column- Parameters:
table
- the tablecolumn
- the column index- Returns:
- true if it is an array preview column, false otherwise
-
copyUnmodifiedCellDataToClipboard
Copies an unmodified (no preview) cell of data to the clipboard.- Parameters:
table
- the tablerow
- the rowcolumnIndex
- the desired column
-