org.eclipse.nebula.widgets.nattable.group
Class RowGroupExpandCollapseLayer<T>
java.lang.Object
org.eclipse.nebula.widgets.nattable.layer.AbstractLayer
org.eclipse.nebula.widgets.nattable.layer.AbstractLayerTransform
org.eclipse.nebula.widgets.nattable.hideshow.AbstractRowHideShowLayer
org.eclipse.nebula.widgets.nattable.group.RowGroupExpandCollapseLayer<T>
- All Implemented Interfaces:
- IRowGroupModelListener, ILayer, ILayerListener, IUniqueIndexLayer, IPersistable
public class RowGroupExpandCollapseLayer<T>
- extends AbstractRowHideShowLayer
- implements IRowGroupModelListener
| Methods inherited from class org.eclipse.nebula.widgets.nattable.hideshow.AbstractRowHideShowLayer |
cacheVisibleRowIndexes, getColumnPositionByIndex, getHeight, getRowCount, getRowIndexByPosition, getRowPositionByIndex, getRowPositionByY, getRowPositionsByIndexes, getStartYOfRowPosition, handleLayerEvent, localToUnderlyingRowPosition, underlyingToLocalRowPosition, underlyingToLocalRowPositions |
| Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.AbstractLayerTransform |
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, loadState, localToUnderlyingColumnPosition, saveState, setClientAreaProvider, setUnderlyingLayer, underlyingToLocalColumnPosition, underlyingToLocalColumnPositions |
| Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.AbstractLayer |
addConfiguration, addLayerListener, clearConfiguration, fireLayerEvent, getBoundsByPosition, getClientAreaProvider, getConfigLabelAccumulator, getRegionName, hasLayerListener, registerCommandHandler, registerCommandHandlers, registerEventHandler, registerPersistable, removeLayerListener, setConfigLabelAccumulator, setLayerPainter, setRegionName, toString, unregisterCommandHandler, unregisterEventHandler, unregisterPersistable |
| Methods inherited from interface org.eclipse.nebula.widgets.nattable.layer.ILayer |
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 |
RowGroupExpandCollapseLayer
public RowGroupExpandCollapseLayer(IUniqueIndexLayer underlyingLayer,
IRowGroupModel<T> model)
getModel
public IRowGroupModel<T> getModel()
isRowIndexHidden
public boolean isRowIndexHidden(int rowIndex)
- Description copied from class:
AbstractRowHideShowLayer
- Will check if the row at the specified index is hidden or not. Checks this
layer and also the sublayers for the visibility.
- Specified by:
isRowIndexHidden in class AbstractRowHideShowLayer
- Parameters:
rowIndex - The row index of the row whose visibility state
should be checked.
- Returns:
true if the row at the specified index is hidden,
false if it is visible.
getHiddenRowIndexes
public Collection<Integer> getHiddenRowIndexes()
- Description copied from class:
AbstractRowHideShowLayer
- Will collect and return all indexes of the rows that are hidden in this layer.
Note: It is not intended that it also collects the row indexes of underlying
layers. This would cause issues on calculating positions as every layer
is responsible for those calculations itself.
- Specified by:
getHiddenRowIndexes in class AbstractRowHideShowLayer
- Returns:
- Collection of all row indexes that are hidden in this layer.
rowGroupModelChanged
public void rowGroupModelChanged()
- Specified by:
rowGroupModelChanged in interface IRowGroupModelListener
invalidateCache
protected void invalidateCache()
- Description copied from class:
AbstractRowHideShowLayer
- Invalidate the cache to ensure that information is rebuild.
- Overrides:
invalidateCache in class AbstractRowHideShowLayer
Copyright © 2014. All rights reserved.