public class RowHideShowLayer extends AbstractRowHideShowLayer implements IRowHideShowCommandLayer
Modifier and Type | Field and Description |
---|---|
static String |
PERSISTENCE_KEY_HIDDEN_ROW_INDEXES |
underlyingLayer
layerPainter
DOT, VALUE_SEPARATOR
Constructor and Description |
---|
RowHideShowLayer(IUniqueIndexLayer underlyingLayer) |
Modifier and Type | Method and Description |
---|---|
Collection<Integer> |
getHiddenRowIndexes()
Will collect and return all indexes of the rows that are hidden in this layer.
|
void |
handleLayerEvent(ILayerEvent event)
Handle layer event notification.
|
void |
hideRowIndexes(Collection<Integer> rowIndexes)
Hide the rows with the given indexes.
|
void |
hideRowPositions(Collection<Integer> rowPositions)
Hide the rows at the given positions.
|
boolean |
isRowIndexHidden(int rowIndex)
Will check if the row 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 |
showAllRows()
Show all rows that where previously hidden.
|
void |
showRowIndexes(Collection<Integer> rowIndexes)
Show the rows with the given indexes again.
|
cacheVisibleRowIndexes, getColumnPositionByIndex, getHeight, getRowCount, getRowIndexByPosition, getRowPositionByIndex, getRowPositionByY, getRowPositionsByIndexes, getStartYOfRowPosition, invalidateCache, localToUnderlyingRowPosition, underlyingToLocalRowPosition, underlyingToLocalRowPositions
configure, dispose, doCommand, getCellByPosition, getCellPainter, getColumnCount, getColumnIndexByPosition, getColumnPositionByX, getColumnWidthByPosition, getConfigLabelsByPosition, getDataValueByPosition, getDisplayModeByPosition, getLayerPainter, getPreferredColumnCount, getPreferredHeight, getPreferredRowCount, getPreferredWidth, getRegionLabelsByXY, getRowHeightByPosition, getStartXOfColumnPosition, getUnderlyingLayer, getUnderlyingLayerByPosition, getUnderlyingLayersByColumnPosition, getUnderlyingLayersByRowPosition, getWidth, isColumnPositionResizable, isRowPositionResizable, localToUnderlyingColumnPosition, setClientAreaProvider, setUnderlyingLayer, underlyingToLocalColumnPosition, underlyingToLocalColumnPositions
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, getColumnCount, getColumnIndexByPosition, getColumnPositionByX, getColumnWidthByPosition, getConfigLabelsByPosition, getDataValueByPosition, getDisplayModeByPosition, getLayerPainter, getPreferredColumnCount, getPreferredHeight, getPreferredRowCount, getPreferredWidth, getRegionLabelsByXY, getRowHeightByPosition, getStartXOfColumnPosition, getUnderlyingLayerByPosition, getUnderlyingLayersByColumnPosition, getUnderlyingLayersByRowPosition, getWidth, hasLayerListener, isColumnPositionResizable, isRowPositionResizable, localToUnderlyingColumnPosition, registerCommandHandler, registerPersistable, removeLayerListener, setClientAreaProvider, underlyingToLocalColumnPosition, underlyingToLocalColumnPositions, unregisterCommandHandler, unregisterPersistable
public static final String PERSISTENCE_KEY_HIDDEN_ROW_INDEXES
public RowHideShowLayer(IUniqueIndexLayer underlyingLayer)
public void handleLayerEvent(ILayerEvent event)
AbstractLayer
super.fireLayerEvent(event)
- unless you plan to eat the event yourself.handleLayerEvent
in interface ILayerListener
handleLayerEvent
in class AbstractRowHideShowLayer
event
- the eventpublic 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 isRowIndexHidden(int rowIndex)
AbstractRowHideShowLayer
isRowIndexHidden
in class AbstractRowHideShowLayer
rowIndex
- The row index of the row whose visibility state
should be checked.true
if the row at the specified index is hidden,
false
if it is visible.public Collection<Integer> getHiddenRowIndexes()
AbstractRowHideShowLayer
getHiddenRowIndexes
in class AbstractRowHideShowLayer
public void hideRowPositions(Collection<Integer> rowPositions)
IRowHideShowCommandLayer
hideRowPositions
in interface IRowHideShowCommandLayer
rowPositions
- The positions of the rows to hide.public void hideRowIndexes(Collection<Integer> rowIndexes)
IRowHideShowCommandLayer
hideRowIndexes
in interface IRowHideShowCommandLayer
rowIndexes
- The indexes of the rows to hide.public void showRowIndexes(Collection<Integer> rowIndexes)
IRowHideShowCommandLayer
showRowIndexes
in interface IRowHideShowCommandLayer
rowIndexes
- The indexes of the rows that should be showed again.public void showAllRows()
IRowHideShowCommandLayer
showAllRows
in interface IRowHideShowCommandLayer
Copyright © 2013. All Rights Reserved.