public class RowHideShowLayer extends AbstractRowHideShowLayer implements IRowHideShowCommandLayer
| Modifier and Type | Field and Description |
|---|---|
static String |
PERSISTENCE_KEY_HIDDEN_ROW_INDEXES |
underlyingLayercommandHandlers, eventHandlers, eventHelperLock, layerPainterDOT, 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, underlyingToLocalRowPositionsconfigure, 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, isDynamicSizeLayer, isRowPositionResizable, localToUnderlyingColumnPosition, setClientAreaProvider, setUnderlyingLayer, underlyingToLocalColumnPosition, underlyingToLocalColumnPositionsaddConfiguration, addLayerListener, clearConfiguration, fireLayerEvent, getBoundsByPosition, getClientAreaProvider, getConfigLabelAccumulator, getProvidedLabels, getRegionName, hasLayerListener, registerCommandHandler, registerCommandHandlers, registerEventHandler, registerPersistable, removeLayerListener, setConfigLabelAccumulator, setLayerPainter, setRegionName, toString, unregisterCommandHandler, unregisterEventHandler, unregisterPersistableclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddLayerListener, 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, unregisterPersistablepublic static final String PERSISTENCE_KEY_HIDDEN_ROW_INDEXES
public RowHideShowLayer(IUniqueIndexLayer underlyingLayer)
public void handleLayerEvent(ILayerEvent event)
AbstractLayersuper.fireLayerEvent(event) - unless you plan to eat the
event yourself.handleLayerEvent in interface ILayerListenerhandleLayerEvent in class AbstractRowHideShowLayerevent - the eventpublic 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 isRowIndexHidden(int rowIndex)
AbstractRowHideShowLayerisRowIndexHidden in class AbstractRowHideShowLayerrowIndex - 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()
AbstractRowHideShowLayergetHiddenRowIndexes in class AbstractRowHideShowLayerpublic void hideRowPositions(Collection<Integer> rowPositions)
IRowHideShowCommandLayerhideRowPositions in interface IRowHideShowCommandLayerrowPositions - The positions of the rows to hide.public void hideRowIndexes(Collection<Integer> rowIndexes)
IRowHideShowCommandLayerhideRowIndexes in interface IRowHideShowCommandLayerrowIndexes - The indexes of the rows to hide.public void showRowIndexes(Collection<Integer> rowIndexes)
IRowHideShowCommandLayershowRowIndexes in interface IRowHideShowCommandLayerrowIndexes - The indexes of the rows that should be showed again.public void showAllRows()
IRowHideShowCommandLayershowAllRows in interface IRowHideShowCommandLayerCopyright © 2016. All rights reserved.