|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 |
---|
commandHandlers, eventHandlers, 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)
AbstractLayer
super.fireLayerEvent(event)
- unless you plan to eat the
event yourself.
handleLayerEvent
in interface ILayerListener
handleLayerEvent
in class AbstractLayer
event
- the eventpublic int getColumnPositionByIndex(int columnIndex)
getColumnPositionByIndex
in interface IUniqueIndexLayer
public int getRowCount()
getRowCount
in interface ILayer
getRowCount
in class AbstractLayerTransform
public int getRowIndexByPosition(int rowPosition)
ILayer
getRowIndexByPosition
in interface ILayer
getRowIndexByPosition
in class AbstractLayerTransform
rowPosition
- a row position relative to this coordinate model
public int getRowPositionByIndex(int rowIndex)
getRowPositionByIndex
in interface IUniqueIndexLayer
public Collection<Integer> getRowPositionsByIndexes(Collection<Integer> rowIndexes)
public int localToUnderlyingRowPosition(int localRowPosition)
localToUnderlyingRowPosition
in interface ILayer
localToUnderlyingRowPosition
in class AbstractLayerTransform
public int underlyingToLocalRowPosition(ILayer sourceUnderlyingLayer, int underlyingRowPosition)
underlyingToLocalRowPosition
in interface ILayer
underlyingToLocalRowPosition
in class AbstractLayerTransform
public Collection<Range> underlyingToLocalRowPositions(ILayer sourceUnderlyingLayer, Collection<Range> underlyingRowPositionRanges)
underlyingToLocalRowPositions
in interface ILayer
underlyingToLocalRowPositions
in class AbstractLayerTransform
public int getHeight()
ILayer
getHeight
in interface ILayer
getHeight
in class AbstractLayerTransform
public int getRowPositionByY(int y)
ILayer
getRowPositionByY
in interface ILayer
getRowPositionByY
in class AbstractLayerTransform
y
- a vertical pixel location relative to the pixel boundary of
this layer
public int getStartYOfRowPosition(int localRowPosition)
ILayer
getStartYOfRowPosition
in interface ILayer
getStartYOfRowPosition
in class AbstractLayerTransform
localRowPosition
- 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 |