Class ColumnPreviewPopupProvider

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

public class ColumnPreviewPopupProvider extends Object implements PopupProvider
Pops up a right click menu for Preview Tables, allowing the user to show a window displaying the full data from the preview.
  • Constructor Details

    • ColumnPreviewPopupProvider

      public ColumnPreviewPopupProvider(com.fishlib.io.logger.Logger log)
  • Method Details

    • getMenuItems

      public List<? extends JComponent> getMenuItems(GuiTable table, int columnIndex)
      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
      columnIndex - The column index in Model space
      Returns:
      A list of menu items to add to the popup menu.
    • hasArrayPreview

      public static boolean hasArrayPreview(DBTableModel model)
      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

      public static boolean isArrayPreviewColumn(GuiTable table, int column)
      Indicates if a column in a GuiTable is an Array Preview Column
      Parameters:
      table - the table
      column - the column index
      Returns:
      true if it is an array preview column, false otherwise
    • copyUnmodifiedCellDataToClipboard

      public static void copyUnmodifiedCellDataToClipboard(GuiTable table, int row, int columnIndex)
      Copies an unmodified (no preview) cell of data to the clipboard.
      Parameters:
      table - the table
      row - the row
      columnIndex - the desired column