org.eclipse.nebula.widgets.nattable.grid.data
Class DefaultSummaryRowHeaderDataProvider
java.lang.Object
org.eclipse.nebula.widgets.nattable.grid.data.DefaultRowHeaderDataProvider
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_SUMMARY_ROW_LABEL
public static final String DEFAULT_SUMMARY_ROW_LABEL
- See Also:
- Constant Field Values
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
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.