public class ColumnHideShowLayer extends AbstractColumnHideShowLayer
| Modifier and Type | Field and Description |
|---|---|
static String |
PERSISTENCE_KEY_HIDDEN_COLUMN_INDEXES |
underlyingLayerlayerPainterDOT, 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, underlyingToLocalColumnPositionsconfigure, 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, underlyingToLocalRowPositionsaddConfiguration, addLayerListener, clearConfiguration, fireLayerEvent, getBoundsByPosition, getClientAreaProvider, getConfigLabelAccumulator, getRegionName, hasLayerListener, registerCommandHandler, registerCommandHandlers, registerEventHandler, registerPersistable, removeLayerListener, setConfigLabelAccumulator, setLayerPainter, setRegionName, toString, unregisterCommandHandler, unregisterPersistableclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddLayerListener, 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, unregisterPersistablepublic static final String PERSISTENCE_KEY_HIDDEN_COLUMN_INDEXES
public ColumnHideShowLayer(IUniqueIndexLayer underlyingLayer)
public void saveState(String prefix, Properties properties)
IPersistablesaveState in interface IPersistablesaveState in class AbstractLayerTransformprefix - 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)
AbstractLayerTransformIStructuralChangeEvent from underlying
layers will reset caches after state has been loadedloadState in interface IPersistableloadState in class AbstractLayerTransformprefix - 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)
AbstractColumnHideShowLayerColumnGroupModel.ColumnGroups are created index based, this method only
works correctly with indexes rather than positions.isColumnIndexHidden in class AbstractColumnHideShowLayercolumnIndex - 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()
AbstractColumnHideShowLayergetHiddenColumnIndexes in class AbstractColumnHideShowLayerpublic void hideColumnPositions(Collection<Integer> columnPositions)
public void showColumnIndexes(Collection<Integer> columnIndexes)
public void showAllColumns()
Copyright © 2013. All Rights Reserved.