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

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.grid.data.DefaultRowHeaderDataProvider
      extended by org.eclipse.nebula.widgets.nattable.grid.data.DefaultSummaryRowHeaderDataProvider
All Implemented Interfaces:
IDataProvider

public class DefaultSummaryRowHeaderDataProvider
extends DefaultRowHeaderDataProvider
implements IDataProvider

IDataProvider to use for the RowHeaderLayer if the SummaryRowLayer is present in the body layer stack. This adds an extra row to the row header for displaying the summary row.


Field Summary
static String DEFAULT_SUMMARY_ROW_LABEL
           
 
Fields inherited from class org.eclipse.nebula.widgets.nattable.grid.data.DefaultRowHeaderDataProvider
bodyDataProvider
 
Constructor Summary
DefaultSummaryRowHeaderDataProvider(IDataProvider bodyDataProvider)
           
DefaultSummaryRowHeaderDataProvider(IDataProvider bodyDataProvider, String summaryRowLabel)
           
 
Method Summary
 Object getDataValue(int columnIndex, int rowIndex)
          Gets the value at the given column and row index.
 int getRowCount()
           
 
Methods inherited from class org.eclipse.nebula.widgets.nattable.grid.data.DefaultRowHeaderDataProvider
getColumnCount, setDataValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.nebula.widgets.nattable.data.IDataProvider
getColumnCount, setDataValue
 

Field Detail

DEFAULT_SUMMARY_ROW_LABEL

public static final String DEFAULT_SUMMARY_ROW_LABEL
See Also:
Constant Field Values
Constructor Detail

DefaultSummaryRowHeaderDataProvider

public DefaultSummaryRowHeaderDataProvider(IDataProvider bodyDataProvider)

DefaultSummaryRowHeaderDataProvider

public DefaultSummaryRowHeaderDataProvider(IDataProvider bodyDataProvider,
                                           String summaryRowLabel)
Parameters:
summaryRowLabel - label to display in the row header for the Summary Row
Method Detail

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface IDataProvider
Overrides:
getRowCount in class DefaultRowHeaderDataProvider

getDataValue

public Object getDataValue(int columnIndex,
                           int rowIndex)
Description copied from interface: IDataProvider
Gets the value at the given column and row index.

Specified by:
getDataValue in interface IDataProvider
Overrides:
getDataValue in class DefaultRowHeaderDataProvider
Returns:
the data value associated with the specified cell


Copyright © 2014. All rights reserved.