Package com.illumon.iris.gui.widget
Class NullFreezeColumnManager
java.lang.Object
com.illumon.iris.gui.widget.NullFreezeColumnManager
- All Implemented Interfaces:
FreezeColumnsManager
public class NullFreezeColumnManager extends Object implements FreezeColumnsManager
A Freeze Column Manager for Gui Tables that do not support freeze columns. This class implements the interface to
do nothing.
-
Constructor Summary
Constructors Constructor Description NullFreezeColumnManager(GuiTable guiTable)
-
Method Summary
Modifier and Type Method Description void
freezeColumn(String column)
Freezes a column.void
freezeColumn(TableColumn column)
Freezes a column.boolean
freezeColumnsSupported()
Indicates if freeze columns are supported.List<String>
getFreezeColumns()
Gets a list of the columns that are frozen.GuiTable
getFreezeTable()
Gets the freeze table.Set<String>
getFrozenColumnSet()
Gets the freeze columns as a set.GuiTable
getMainTable()
Gets the main table.Set<String>
getNormalColumnSet()
Gets the normal (unfrozen) columns as a set.void
hideFreezeTable()
Hides the freeze table.boolean
isFreezeTable(GuiTable table)
Indicates if a table is the freeze table.boolean
isModified()
Indicates if the freeze columns have been altered since the table was first created (e.g.void
repaint()
Requests the freeze table to repaint.void
setFreezeColumns(Collection<String> columns)
Clears any previous freeze columns and sets them to the columns in a list.void
setModified(boolean modified)
Marks if the freeze columns have been modified.void
showFreezeTable()
Shows the freeze table.void
unfreezeColumn(String column)
Unfreezes a column.void
unfreezeColumn(TableColumn column)
Unfreezes a column.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.illumon.iris.gui.widget.FreezeColumnsManager
close, convertColumnIndexToModel, getColumnName, getHiddenColumns, getOtherColumnSet, getSelectedColumns, getTotalColumnCount, getVisibleColumns, hideAllColumns, mayHideOrFreezeColumn, showColumn
-
Constructor Details
-
Method Details
-
freezeColumnsSupported
public boolean freezeColumnsSupported()Description copied from interface:FreezeColumnsManager
Indicates if freeze columns are supported.- Specified by:
freezeColumnsSupported
in interfaceFreezeColumnsManager
- Returns:
- true if freeze columns are supported, false otherwise
-
getFreezeColumns
Description copied from interface:FreezeColumnsManager
Gets a list of the columns that are frozen.- Specified by:
getFreezeColumns
in interfaceFreezeColumnsManager
- Returns:
- a list of freeze columns
-
getFrozenColumnSet
Description copied from interface:FreezeColumnsManager
Gets the freeze columns as a set.- Specified by:
getFrozenColumnSet
in interfaceFreezeColumnsManager
- Returns:
- the freeze columns
-
getNormalColumnSet
Description copied from interface:FreezeColumnsManager
Gets the normal (unfrozen) columns as a set.- Specified by:
getNormalColumnSet
in interfaceFreezeColumnsManager
- Returns:
- the normal columns
-
setFreezeColumns
Description copied from interface:FreezeColumnsManager
Clears any previous freeze columns and sets them to the columns in a list.- Specified by:
setFreezeColumns
in interfaceFreezeColumnsManager
- Parameters:
columns
- the list of columns to freeze
-
getMainTable
Description copied from interface:FreezeColumnsManager
Gets the main table. This is useful for when we should operate on the main table, but the user clicks on the freeze table.- Specified by:
getMainTable
in interfaceFreezeColumnsManager
- Returns:
- the main table
-
getFreezeTable
Description copied from interface:FreezeColumnsManager
Gets the freeze table.- Specified by:
getFreezeTable
in interfaceFreezeColumnsManager
- Returns:
- the freeze table, null if freezing is not supported or no columns have been frozen
-
hideFreezeTable
public void hideFreezeTable()Description copied from interface:FreezeColumnsManager
Hides the freeze table.- Specified by:
hideFreezeTable
in interfaceFreezeColumnsManager
-
showFreezeTable
public void showFreezeTable()Description copied from interface:FreezeColumnsManager
Shows the freeze table.- Specified by:
showFreezeTable
in interfaceFreezeColumnsManager
-
isFreezeTable
Description copied from interface:FreezeColumnsManager
Indicates if a table is the freeze table.- Specified by:
isFreezeTable
in interfaceFreezeColumnsManager
- Parameters:
table
- the table to check- Returns:
- true if it is the freeze table, false otherwise
-
freezeColumn
Description copied from interface:FreezeColumnsManager
Freezes a column.- Specified by:
freezeColumn
in interfaceFreezeColumnsManager
- Parameters:
column
- the column to freeze
-
unfreezeColumn
Description copied from interface:FreezeColumnsManager
Unfreezes a column.- Specified by:
unfreezeColumn
in interfaceFreezeColumnsManager
- Parameters:
column
- the column to unfreeze
-
freezeColumn
Description copied from interface:FreezeColumnsManager
Freezes a column.- Specified by:
freezeColumn
in interfaceFreezeColumnsManager
- Parameters:
column
- the column to freeze
-
unfreezeColumn
Description copied from interface:FreezeColumnsManager
Unfreezes a column.- Specified by:
unfreezeColumn
in interfaceFreezeColumnsManager
- Parameters:
column
- the column to unfreeze
-
repaint
public void repaint()Description copied from interface:FreezeColumnsManager
Requests the freeze table to repaint.- Specified by:
repaint
in interfaceFreezeColumnsManager
-
isModified
public boolean isModified()Description copied from interface:FreezeColumnsManager
Indicates if the freeze columns have been altered since the table was first created (e.g. the freeze columns are different than what was specified in the layout hints)- Specified by:
isModified
in interfaceFreezeColumnsManager
- Returns:
- true if the columns have been modified, false otherwise
-
setModified
public void setModified(boolean modified)Description copied from interface:FreezeColumnsManager
Marks if the freeze columns have been modified.- Specified by:
setModified
in interfaceFreezeColumnsManager
- Parameters:
modified
- true if they have been modified, false otherwise
-