|
||||||||||
| 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.AbstractColumnHideShowLayer
public abstract class AbstractColumnHideShowLayer
| 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 | |
|---|---|
AbstractColumnHideShowLayer(IUniqueIndexLayer underlyingLayer)
|
|
| Method Summary | |
|---|---|
int |
getColumnCount()
|
int |
getColumnIndexByPosition(int columnPosition)
Gets the underlying non-transformed column index for the given column position. |
int |
getColumnPositionByIndex(int columnIndex)
|
int |
getColumnPositionByX(int x)
Returns the column position that contains the given x coordinate. |
Collection<Integer> |
getColumnPositionsByIndexes(Collection<Integer> columnIndexes)
|
abstract Collection<Integer> |
getHiddenColumnIndexes()
Will collect and return all indexes of the columns that are hidden in this layer. |
int |
getRowPositionByIndex(int rowIndex)
|
int |
getStartXOfColumnPosition(int localColumnPosition)
Returns the x offset in pixels of the given column. |
int |
getWidth()
Returns the total width in pixels of this layer. |
void |
handleLayerEvent(ILayerEvent event)
Handle layer event notification. |
protected void |
invalidateCache()
Invalidate the cache to ensure that information is rebuild. |
abstract boolean |
isColumnIndexHidden(int columnIndex)
Will check if the column at the specified index is hidden or not. |
int |
localToUnderlyingColumnPosition(int localColumnPosition)
Convert a column position to the coordinates of the underlying layer. |
int |
underlyingToLocalColumnPosition(ILayer sourceUnderlyingLayer,
int underlyingColumnPosition)
|
Collection<Range> |
underlyingToLocalColumnPositions(ILayer sourceUnderlyingLayer,
Collection<Range> underlyingColumnPositionRanges)
|
| 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 AbstractColumnHideShowLayer(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 getColumnCount()
getColumnCount in interface ILayergetColumnCount in class AbstractLayerTransformpublic int getColumnIndexByPosition(int columnPosition)
ILayer
getColumnIndexByPosition in interface ILayergetColumnIndexByPosition in class AbstractLayerTransformcolumnPosition - a column position relative to this coordinate model
public int getColumnPositionByIndex(int columnIndex)
getColumnPositionByIndex in interface IUniqueIndexLayerpublic Collection<Integer> getColumnPositionsByIndexes(Collection<Integer> columnIndexes)
public int localToUnderlyingColumnPosition(int localColumnPosition)
ILayer
localToUnderlyingColumnPosition in interface ILayerlocalToUnderlyingColumnPosition in class AbstractLayerTransformlocalColumnPosition - column position in local (the layer's own) coordinates
public int underlyingToLocalColumnPosition(ILayer sourceUnderlyingLayer,
int underlyingColumnPosition)
underlyingToLocalColumnPosition in interface ILayerunderlyingToLocalColumnPosition in class AbstractLayerTransform
public Collection<Range> underlyingToLocalColumnPositions(ILayer sourceUnderlyingLayer,
Collection<Range> underlyingColumnPositionRanges)
underlyingToLocalColumnPositions in interface ILayerunderlyingToLocalColumnPositions in class AbstractLayerTransformpublic int getWidth()
ILayer
getWidth in interface ILayergetWidth in class AbstractLayerTransformpublic int getColumnPositionByX(int x)
ILayer
getColumnPositionByX in interface ILayergetColumnPositionByX in class AbstractLayerTransformx - a horizontal pixel location relative to the pixel boundary of this layer
public int getStartXOfColumnPosition(int localColumnPosition)
ILayer
getStartXOfColumnPosition in interface ILayergetStartXOfColumnPosition in class AbstractLayerTransformlocalColumnPosition - the column position in this layer
public int getRowPositionByIndex(int rowIndex)
getRowPositionByIndex in interface IUniqueIndexLayerpublic abstract boolean isColumnIndexHidden(int columnIndex)
ColumnGroupModel.ColumnGroups are created index based, this method only
works correctly with indexes rather than positions.
columnIndex - The column index of the column whose visibility state
should be checked.
true if the column at the specified index is hidden,
false if it is visible.public abstract Collection<Integer> getHiddenColumnIndexes()
protected void invalidateCache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||