org.eclipse.nebula.widgets.nattable.layer
Class SpanningDataLayer

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.layer.AbstractLayer
      extended by org.eclipse.nebula.widgets.nattable.layer.DataLayer
          extended by org.eclipse.nebula.widgets.nattable.layer.SpanningDataLayer
All Implemented Interfaces:
ILayer, ILayerListener, IUniqueIndexLayer, IPersistable

public class SpanningDataLayer
extends DataLayer


Field Summary
 
Fields inherited from class org.eclipse.nebula.widgets.nattable.layer.DataLayer
columnWidthConfig, dataProvider, DEFAULT_COLUMN_WIDTH, DEFAULT_ROW_HEIGHT, PERSISTENCE_KEY_COLUMN_WIDTH, PERSISTENCE_KEY_ROW_HEIGHT, rowHeightConfig
 
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
protected SpanningDataLayer()
           
protected SpanningDataLayer(int defaultColumnWidth, int defaultRowHeight)
           
  SpanningDataLayer(ISpanningDataProvider dataProvider)
           
  SpanningDataLayer(ISpanningDataProvider dataProvider, int defaultColumnWidth, int defaultRowHeight)
           
 
Method Summary
 org.eclipse.swt.graphics.Rectangle getBoundsByPosition(int columnPosition, int rowPosition)
          Calculates the bounds in pixel for the given cell position.
 ILayerCell getCellByPosition(int columnPosition, int rowPosition)
           
 ISpanningDataProvider getDataProvider()
           
 void setDataValue(int columnIndex, int rowIndex, Object newValue)
          Sets the value at the given column and row index.
 
Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.DataLayer
doCommand, getColumnCount, getColumnIndexByPosition, getColumnPositionByIndex, getColumnPositionByX, getColumnWidthByPosition, getDataValue, getDataValueByPosition, getDefaultColumnWidth, getDefaultRowHeight, getHeight, getPreferredColumnCount, getPreferredHeight, getPreferredRowCount, getPreferredWidth, getRowCount, getRowHeightByPosition, getRowIndexByPosition, getRowPositionByIndex, getRowPositionByY, getStartXOfColumnPosition, getStartYOfRowPosition, getUnderlyingLayerByPosition, getUnderlyingLayersByColumnPosition, getUnderlyingLayersByRowPosition, getWidth, isColumnPercentageSizing, isColumnPercentageSizing, isColumnPositionResizable, isRowPercentageSizing, isRowPercentageSizing, isRowPositionResizable, loadState, localToUnderlyingColumnPosition, localToUnderlyingRowPosition, registerCommandHandlers, saveState, setColumnPercentageSizing, setColumnPercentageSizing, setColumnPositionResizable, setColumnsResizableByDefault, setColumnWidthByPosition, setColumnWidthByPosition, setColumnWidthPercentageByPosition, setDataProvider, setDataValueByPosition, setDefaultColumnWidth, setDefaultColumnWidthByPosition, setDefaultRowHeight, setDefaultRowHeightByPosition, setRowHeightByPosition, setRowHeightByPosition, setRowHeightPercentageByPosition, setRowPercentageSizing, setRowPercentageSizing, setRowPositionResizable, setRowsResizableByDefault, underlyingToLocalColumnPosition, underlyingToLocalColumnPositions, underlyingToLocalRowPosition, underlyingToLocalRowPositions
 
Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.AbstractLayer
addConfiguration, addLayerListener, clearConfiguration, configure, dispose, fireLayerEvent, getCellPainter, getClientAreaProvider, getConfigLabelAccumulator, getConfigLabelsByPosition, getDisplayModeByPosition, getLayerPainter, getRegionLabelsByXY, getRegionName, handleLayerEvent, hasLayerListener, registerCommandHandler, registerEventHandler, registerPersistable, removeLayerListener, setClientAreaProvider, 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.layer.ILayer
addLayerListener, configure, dispose, fireLayerEvent, getCellPainter, getClientAreaProvider, getConfigLabelsByPosition, getDisplayModeByPosition, getLayerPainter, getRegionLabelsByXY, hasLayerListener, registerCommandHandler, registerPersistable, removeLayerListener, setClientAreaProvider, unregisterCommandHandler, unregisterPersistable
 
Methods inherited from interface org.eclipse.nebula.widgets.nattable.layer.ILayerListener
handleLayerEvent
 

Constructor Detail

SpanningDataLayer

public SpanningDataLayer(ISpanningDataProvider dataProvider)

SpanningDataLayer

public SpanningDataLayer(ISpanningDataProvider dataProvider,
                         int defaultColumnWidth,
                         int defaultRowHeight)

SpanningDataLayer

protected SpanningDataLayer()

SpanningDataLayer

protected SpanningDataLayer(int defaultColumnWidth,
                            int defaultRowHeight)
Method Detail

getDataProvider

public ISpanningDataProvider getDataProvider()
Overrides:
getDataProvider in class DataLayer

getCellByPosition

public ILayerCell getCellByPosition(int columnPosition,
                                    int rowPosition)
Specified by:
getCellByPosition in interface ILayer
Overrides:
getCellByPosition in class AbstractLayer

getBoundsByPosition

public org.eclipse.swt.graphics.Rectangle getBoundsByPosition(int columnPosition,
                                                              int rowPosition)
Description copied from interface: ILayer
Calculates the bounds in pixel for the given cell position.

Specified by:
getBoundsByPosition in interface ILayer
Overrides:
getBoundsByPosition in class AbstractLayer
Parameters:
columnPosition - the column position of the cell
rowPosition - the row position of the cell
Returns:
the bounds, or null if there are no valid bounds

setDataValue

public void setDataValue(int columnIndex,
                         int rowIndex,
                         Object newValue)
Description copied from class: DataLayer
Sets the value at the given column and row index. Optional operation. Should throw UnsupportedOperationException if this operation is not supported.

Overrides:
setDataValue in class DataLayer


Copyright © 2015. All rights reserved.