org.eclipse.nebula.widgets.nattable.grid.data
Class FixedSummaryRowHeaderLayer

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.layer.AbstractLayer
      extended by org.eclipse.nebula.widgets.nattable.grid.layer.DimensionallyDependentLayer
          extended by org.eclipse.nebula.widgets.nattable.grid.layer.RowHeaderLayer
              extended by org.eclipse.nebula.widgets.nattable.grid.data.FixedSummaryRowHeaderLayer
All Implemented Interfaces:
ILayer, ILayerListener, IPersistable

public class FixedSummaryRowHeaderLayer
extends RowHeaderLayer

Using this specialization of RowHeaderLayer adds support for configuring a fixed SummaryRowLayer in the body region of a grid.


Field Summary
static String DEFAULT_SUMMARY_ROW_LABEL
           
protected  String summaryRowLabel
           
 
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
FixedSummaryRowHeaderLayer(IUniqueIndexLayer baseLayer, ILayer verticalLayerDependency, SelectionLayer selectionLayer)
           
FixedSummaryRowHeaderLayer(IUniqueIndexLayer baseLayer, ILayer verticalLayerDependency, SelectionLayer selectionLayer, boolean useDefaultConfiguration)
           
FixedSummaryRowHeaderLayer(IUniqueIndexLayer baseLayer, ILayer verticalLayerDependency, SelectionLayer selectionLayer, boolean useDefaultConfiguration, ILayerPainter layerPainter)
           
 
Method Summary
 LabelStack getConfigLabelsByPosition(int columnPosition, int rowPosition)
           
 Object getDataValueByPosition(int columnPosition, int rowPosition)
           
 String getSummaryRowLabel()
           
 void setSummaryRowLabel(String summaryRowLabel)
           
 
Methods inherited from class org.eclipse.nebula.widgets.nattable.grid.layer.RowHeaderLayer
getDisplayModeByPosition
 
Methods inherited from class org.eclipse.nebula.widgets.nattable.grid.layer.DimensionallyDependentLayer
configure, doCommand, getBaseLayer, getClientAreaProvider, getColumnCount, getColumnIndexByPosition, getColumnPositionByX, getColumnWidthByPosition, getHeight, getHorizontalLayerDependency, getLayerPainter, getPreferredColumnCount, getPreferredHeight, getPreferredRowCount, getPreferredWidth, getRegionLabelsByXY, getRowCount, getRowHeightByPosition, getRowIndexByPosition, getRowPositionByY, getStartXOfColumnPosition, getStartYOfRowPosition, getUnderlyingLayerByPosition, getUnderlyingLayersByColumnPosition, getUnderlyingLayersByRowPosition, getVerticalLayerDependency, getWidth, isColumnPositionResizable, isRowPositionResizable, loadState, localToUnderlyingColumnPosition, localToUnderlyingRowPosition, saveState, setClientAreaProvider, setHorizontalLayerDependency, setVerticalLayerDependency, underlyingToLocalColumnPosition, underlyingToLocalColumnPositions, underlyingToLocalRowPosition, underlyingToLocalRowPositions
 
Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.AbstractLayer
addConfiguration, addLayerListener, clearConfiguration, dispose, fireLayerEvent, getBoundsByPosition, getCellByPosition, getCellPainter, getConfigLabelAccumulator, getRegionName, handleLayerEvent, 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
 

Field Detail

DEFAULT_SUMMARY_ROW_LABEL

public static final String DEFAULT_SUMMARY_ROW_LABEL
See Also:
Constant Field Values

summaryRowLabel

protected String summaryRowLabel
Constructor Detail

FixedSummaryRowHeaderLayer

public FixedSummaryRowHeaderLayer(IUniqueIndexLayer baseLayer,
                                  ILayer verticalLayerDependency,
                                  SelectionLayer selectionLayer)

FixedSummaryRowHeaderLayer

public FixedSummaryRowHeaderLayer(IUniqueIndexLayer baseLayer,
                                  ILayer verticalLayerDependency,
                                  SelectionLayer selectionLayer,
                                  boolean useDefaultConfiguration)

FixedSummaryRowHeaderLayer

public FixedSummaryRowHeaderLayer(IUniqueIndexLayer baseLayer,
                                  ILayer verticalLayerDependency,
                                  SelectionLayer selectionLayer,
                                  boolean useDefaultConfiguration,
                                  ILayerPainter layerPainter)
Method Detail

getDataValueByPosition

public Object getDataValueByPosition(int columnPosition,
                                     int rowPosition)
Specified by:
getDataValueByPosition in interface ILayer
Overrides:
getDataValueByPosition in class DimensionallyDependentLayer

getConfigLabelsByPosition

public LabelStack getConfigLabelsByPosition(int columnPosition,
                                            int rowPosition)
Specified by:
getConfigLabelsByPosition in interface ILayer
Overrides:
getConfigLabelsByPosition in class RowHeaderLayer

getSummaryRowLabel

public String getSummaryRowLabel()
Returns:
The label that is used as data value for the horizontal dependent cell to the row header column.

setSummaryRowLabel

public void setSummaryRowLabel(String summaryRowLabel)
Parameters:
summaryRowLabel - The label that should be used as data value for the horizontal dependent cell to the row header column.


Copyright © 2015. All rights reserved.