Package com.illumon.iris.gui.widget
Class NullFreezeColumnManager
java.lang.Object
com.illumon.iris.gui.widget.NullFreezeColumnManager
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidfreezeColumn(String column) Freezes a column.voidfreezeColumn(TableColumn column) Freezes a column.booleanIndicates if freeze columns are supported.Gets a list of the columns that are frozen.Gets the freeze table.Gets the freeze columns as a set.Gets the main table.Gets the normal (unfrozen) columns as a set.voidHides the freeze table.booleanisFreezeTable(GuiTable table) Indicates if a table is the freeze table.booleanIndicates if the freeze columns have been altered since the table was first created (e.g.voidrepaint()Requests the freeze table to repaint.voidsetFreezeColumns(Collection<String> columns) Clears any previous freeze columns and sets them to the columns in a list.voidsetModified(boolean modified) Marks if the freeze columns have been modified.voidShows the freeze table.voidunfreezeColumn(String column) Unfreezes a column.voidunfreezeColumn(TableColumn column) Unfreezes a column.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.gui.widget.FreezeColumnsManager
close, convertColumnIndexToModel, getColumnName, getHiddenColumns, getOtherColumnSet, getSelectedColumns, getTotalColumnCount, getVisibleColumns, hideAllColumns, mayHideOrFreezeColumn, showColumn
-
Constructor Details
-
NullFreezeColumnManager
-
-
Method Details
-
freezeColumnsSupported
public boolean freezeColumnsSupported()Description copied from interface:FreezeColumnsManagerIndicates if freeze columns are supported.- Specified by:
freezeColumnsSupportedin interfaceFreezeColumnsManager- Returns:
- true if freeze columns are supported, false otherwise
-
getFreezeColumns
Description copied from interface:FreezeColumnsManagerGets a list of the columns that are frozen.- Specified by:
getFreezeColumnsin interfaceFreezeColumnsManager- Returns:
- a list of freeze columns
-
getFrozenColumnSet
Description copied from interface:FreezeColumnsManagerGets the freeze columns as a set.- Specified by:
getFrozenColumnSetin interfaceFreezeColumnsManager- Returns:
- the freeze columns
-
getNormalColumnSet
Description copied from interface:FreezeColumnsManagerGets the normal (unfrozen) columns as a set.- Specified by:
getNormalColumnSetin interfaceFreezeColumnsManager- Returns:
- the normal columns
-
setFreezeColumns
Description copied from interface:FreezeColumnsManagerClears any previous freeze columns and sets them to the columns in a list.- Specified by:
setFreezeColumnsin interfaceFreezeColumnsManager- Parameters:
columns- the list of columns to freeze
-
getMainTable
Description copied from interface:FreezeColumnsManagerGets 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:
getMainTablein interfaceFreezeColumnsManager- Returns:
- the main table
-
getFreezeTable
Description copied from interface:FreezeColumnsManagerGets the freeze table.- Specified by:
getFreezeTablein 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:FreezeColumnsManagerHides the freeze table.- Specified by:
hideFreezeTablein interfaceFreezeColumnsManager
-
showFreezeTable
public void showFreezeTable()Description copied from interface:FreezeColumnsManagerShows the freeze table.- Specified by:
showFreezeTablein interfaceFreezeColumnsManager
-
isFreezeTable
Description copied from interface:FreezeColumnsManagerIndicates if a table is the freeze table.- Specified by:
isFreezeTablein interfaceFreezeColumnsManager- Parameters:
table- the table to check- Returns:
- true if it is the freeze table, false otherwise
-
freezeColumn
Description copied from interface:FreezeColumnsManagerFreezes a column.- Specified by:
freezeColumnin interfaceFreezeColumnsManager- Parameters:
column- the column to freeze
-
unfreezeColumn
Description copied from interface:FreezeColumnsManagerUnfreezes a column.- Specified by:
unfreezeColumnin interfaceFreezeColumnsManager- Parameters:
column- the column to unfreeze
-
freezeColumn
Description copied from interface:FreezeColumnsManagerFreezes a column.- Specified by:
freezeColumnin interfaceFreezeColumnsManager- Parameters:
column- the column to freeze
-
unfreezeColumn
Description copied from interface:FreezeColumnsManagerUnfreezes a column.- Specified by:
unfreezeColumnin interfaceFreezeColumnsManager- Parameters:
column- the column to unfreeze
-
repaint
public void repaint()Description copied from interface:FreezeColumnsManagerRequests the freeze table to repaint.- Specified by:
repaintin interfaceFreezeColumnsManager
-
isModified
public boolean isModified()Description copied from interface:FreezeColumnsManagerIndicates 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:
isModifiedin interfaceFreezeColumnsManager- Returns:
- true if the columns have been modified, false otherwise
-
setModified
public void setModified(boolean modified) Description copied from interface:FreezeColumnsManagerMarks if the freeze columns have been modified.- Specified by:
setModifiedin interfaceFreezeColumnsManager- Parameters:
modified- true if they have been modified, false otherwise
-