Class FreezeColumnsManagerImpl

java.lang.Object
com.illumon.iris.gui.widget.FreezeColumnsManagerImpl
All Implemented Interfaces:
FreezeColumnsManager

public class FreezeColumnsManagerImpl extends Object implements FreezeColumnsManager
Allows the user to "Freeze Columns". This takes a normal column and moves it to the left side of the table so that it is always visible. This effect is done by maintaining two Tables with the same Table Model and moving columns between them.
  • Field Details

    • mainTable

      protected final GuiTable mainTable
    • freezeTable

      protected GuiTable freezeTable
  • Constructor Details

    • FreezeColumnsManagerImpl

      public FreezeColumnsManagerImpl(com.fishlib.io.logger.Logger log, GuiTable mainTable, JScrollPane scrollPane, Function<IrisTableModel,GuiTable> createTableFunction, Runnable refresh)
      Creates a new FreezeColumnsManager.
      Parameters:
      log - the logger
      mainTable - the main table that displays normal columns
      scrollPane - the scroll pane containing the main table
      createTableFunction - a callback to create a second GuiTable backed the model of the first
      refresh - a callback to run any special code required to refresh the freeze table
    • FreezeColumnsManagerImpl

      public FreezeColumnsManagerImpl(com.fishlib.io.logger.Logger log, GuiTable mainTable, JScrollPane scrollPane, Function<IrisTableModel,GuiTable> createTableFunction)
      Creates a new FreezeColumnsManager.
      Parameters:
      log - the logger
      mainTable - the main table that displays normal columns
      scrollPane - the scroll pane containing the main table
      createTableFunction - a callback to create a second GuiTable backed the model of the first
  • Method Details