|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.nebula.widgets.nattable.layer.AbstractLayer
org.eclipse.nebula.widgets.nattable.layer.AbstractLayerTransform
org.eclipse.nebula.widgets.nattable.hideshow.AbstractRowHideShowLayer
public abstract class AbstractRowHideShowLayer
| Field Summary |
|---|
| Fields inherited from class org.eclipse.nebula.widgets.nattable.layer.AbstractLayerTransform |
|---|
underlyingLayer |
| Fields inherited from class org.eclipse.nebula.widgets.nattable.layer.AbstractLayer |
|---|
layerPainter |
| Fields inherited from interface org.eclipse.nebula.widgets.nattable.persistence.IPersistable |
|---|
DOT, VALUE_SEPARATOR |
| Constructor Summary | |
|---|---|
AbstractRowHideShowLayer(IUniqueIndexLayer underlyingLayer)
|
|
| Method Summary | |
|---|---|
protected void |
cacheVisibleRowIndexes()
|
int |
getColumnPositionByIndex(int columnIndex)
|
int |
getHeight()
Returns the total height in pixels of this layer. |
abstract Collection<Integer> |
getHiddenRowIndexes()
Will collect and return all indexes of the rows that are hidden in this layer. |
int |
getRowCount()
|
int |
getRowIndexByPosition(int rowPosition)
Gets the underlying non-transformed row index for the given row position. |
int |
getRowPositionByIndex(int rowIndex)
|
int |
getRowPositionByY(int y)
Returns the row position that contains the given y coordinate. |
Collection<Integer> |
getRowPositionsByIndexes(Collection<Integer> rowIndexes)
|
int |
getStartYOfRowPosition(int localRowPosition)
Returns the y offset in pixels of the given row. |
void |
handleLayerEvent(ILayerEvent event)
Handle layer event notification. |
protected void |
invalidateCache()
Invalidate the cache to ensure that information is rebuild. |
abstract boolean |
isRowIndexHidden(int rowIndex)
Will check if the row at the specified index is hidden or not. |
int |
localToUnderlyingRowPosition(int localRowPosition)
|
int |
underlyingToLocalRowPosition(ILayer sourceUnderlyingLayer,
int underlyingRowPosition)
|
Collection<Range> |
underlyingToLocalRowPositions(ILayer sourceUnderlyingLayer,
Collection<Range> underlyingRowPositionRanges)
|
| 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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.nebula.widgets.nattable.persistence.IPersistable |
|---|
loadState, saveState |
| Constructor Detail |
|---|
public AbstractRowHideShowLayer(IUniqueIndexLayer underlyingLayer)
| Method Detail |
|---|
public void handleLayerEvent(ILayerEvent event)
AbstractLayersuper.fireLayerEvent(event)
- unless you plan to eat the event yourself.
handleLayerEvent in interface ILayerListenerhandleLayerEvent in class AbstractLayerevent - the eventpublic int getColumnPositionByIndex(int columnIndex)
getColumnPositionByIndex in interface IUniqueIndexLayerpublic int getRowCount()
getRowCount in interface ILayergetRowCount in class AbstractLayerTransformpublic int getRowIndexByPosition(int rowPosition)
ILayer
getRowIndexByPosition in interface ILayergetRowIndexByPosition in class AbstractLayerTransformrowPosition - a row position relative to this coordinate model
public int getRowPositionByIndex(int rowIndex)
getRowPositionByIndex in interface IUniqueIndexLayerpublic Collection<Integer> getRowPositionsByIndexes(Collection<Integer> rowIndexes)
public int localToUnderlyingRowPosition(int localRowPosition)
localToUnderlyingRowPosition in interface ILayerlocalToUnderlyingRowPosition in class AbstractLayerTransform
public int underlyingToLocalRowPosition(ILayer sourceUnderlyingLayer,
int underlyingRowPosition)
underlyingToLocalRowPosition in interface ILayerunderlyingToLocalRowPosition in class AbstractLayerTransform
public Collection<Range> underlyingToLocalRowPositions(ILayer sourceUnderlyingLayer,
Collection<Range> underlyingRowPositionRanges)
underlyingToLocalRowPositions in interface ILayerunderlyingToLocalRowPositions in class AbstractLayerTransformpublic int getHeight()
ILayer
getHeight in interface ILayergetHeight in class AbstractLayerTransformpublic int getRowPositionByY(int y)
ILayer
getRowPositionByY in interface ILayergetRowPositionByY in class AbstractLayerTransformy - a vertical pixel location relative to the pixel boundary of this layer
public int getStartYOfRowPosition(int localRowPosition)
ILayer
getStartYOfRowPosition in interface ILayergetStartYOfRowPosition in class AbstractLayerTransformlocalRowPosition - the row position in this layer
public abstract boolean isRowIndexHidden(int rowIndex)
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 abstract Collection<Integer> getHiddenRowIndexes()
protected void invalidateCache()
protected void cacheVisibleRowIndexes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||