public class ColumnHideShowLayer extends AbstractColumnHideShowLayer
Modifier and Type | Field and Description |
---|---|
static String |
PERSISTENCE_KEY_HIDDEN_COLUMN_INDEXES |
underlyingLayer
layerPainter
DOT, VALUE_SEPARATOR
Constructor and Description |
---|
ColumnHideShowLayer(IUniqueIndexLayer underlyingLayer) |
Modifier and Type | Method and Description |
---|---|
Collection<Integer> |
getHiddenColumnIndexes()
Will collect and return all indexes of the columns that are hidden in this layer.
|
void |
hideColumnPositions(Collection<Integer> columnPositions) |
boolean |
isColumnIndexHidden(int columnIndex)
Will check if the column at the specified index is hidden or not.
|
void |
loadState(String prefix,
Properties properties)
Underlying layers must load state first.
|
void |
saveState(String prefix,
Properties properties)
Saves the state to the given Properties using the specified prefix.
|
void |
showAllColumns() |
void |
showColumnIndexes(Collection<Integer> columnIndexes) |
getColumnCount, getColumnIndexByPosition, getColumnPositionByIndex, getColumnPositionByX, getColumnPositionsByIndexes, getRowPositionByIndex, getStartXOfColumnPosition, getWidth, handleLayerEvent, invalidateCache, localToUnderlyingColumnPosition, underlyingToLocalColumnPosition, underlyingToLocalColumnPositions
configure, dispose, doCommand, getCellByPosition, getCellPainter, getColumnWidthByPosition, getConfigLabelsByPosition, getDataValueByPosition, getDisplayModeByPosition, getHeight, getLayerPainter, getPreferredColumnCount, getPreferredHeight, getPreferredRowCount, getPreferredWidth, getRegionLabelsByXY, getRowCount, getRowHeightByPosition, getRowIndexByPosition, getRowPositionByY, getStartYOfRowPosition, getUnderlyingLayer, getUnderlyingLayerByPosition, getUnderlyingLayersByColumnPosition, getUnderlyingLayersByRowPosition, isColumnPositionResizable, isRowPositionResizable, localToUnderlyingRowPosition, setClientAreaProvider, setUnderlyingLayer, underlyingToLocalRowPosition, underlyingToLocalRowPositions
addConfiguration, addLayerListener, clearConfiguration, fireLayerEvent, getBoundsByPosition, getClientAreaProvider, getConfigLabelAccumulator, getRegionName, hasLayerListener, registerCommandHandler, registerCommandHandlers, registerEventHandler, registerPersistable, removeLayerListener, setConfigLabelAccumulator, setLayerPainter, setRegionName, toString, unregisterCommandHandler, unregisterPersistable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addLayerListener, configure, dispose, doCommand, fireLayerEvent, getBoundsByPosition, getCellByPosition, getCellPainter, getClientAreaProvider, getColumnWidthByPosition, getConfigLabelsByPosition, getDataValueByPosition, getDisplayModeByPosition, getHeight, getLayerPainter, getPreferredColumnCount, getPreferredHeight, getPreferredRowCount, getPreferredWidth, getRegionLabelsByXY, getRowCount, getRowHeightByPosition, getRowIndexByPosition, getRowPositionByY, getStartYOfRowPosition, getUnderlyingLayerByPosition, getUnderlyingLayersByColumnPosition, getUnderlyingLayersByRowPosition, hasLayerListener, isColumnPositionResizable, isRowPositionResizable, localToUnderlyingRowPosition, registerCommandHandler, registerPersistable, removeLayerListener, setClientAreaProvider, underlyingToLocalRowPosition, underlyingToLocalRowPositions, unregisterCommandHandler, unregisterPersistable
public static final String PERSISTENCE_KEY_HIDDEN_COLUMN_INDEXES
public ColumnHideShowLayer(IUniqueIndexLayer underlyingLayer)
public void saveState(String prefix, Properties properties)
IPersistable
saveState
in interface IPersistable
saveState
in class AbstractLayerTransform
prefix
- The prefix to use for the state keys. Is also used as the state
configuration name.properties
- The Properties instance to save the state to.public void loadState(String prefix, Properties properties)
AbstractLayerTransform
IStructuralChangeEvent
from underlying
layers will reset caches after state has been loadedloadState
in interface IPersistable
loadState
in class AbstractLayerTransform
prefix
- The prefix to use for the state keys. Is also used as the state
configuration name.properties
- The Properties instance to load the state from.public boolean isColumnIndexHidden(int columnIndex)
AbstractColumnHideShowLayer
ColumnGroupModel.ColumnGroup
s are created index based, this method only
works correctly with indexes rather than positions.isColumnIndexHidden
in class AbstractColumnHideShowLayer
columnIndex
- The column index of the column whose visibility state
should be checked.true
if the column at the specified index is hidden,
false
if it is visible.public Collection<Integer> getHiddenColumnIndexes()
AbstractColumnHideShowLayer
getHiddenColumnIndexes
in class AbstractColumnHideShowLayer
public void hideColumnPositions(Collection<Integer> columnPositions)
public void showColumnIndexes(Collection<Integer> columnIndexes)
public void showAllColumns()
Copyright © 2013. All Rights Reserved.