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.-
Field Summary
FieldsFields inherited from class org.eclipse.nebula.widgets.nattable.grid.data.DefaultRowHeaderDataProvider
bodyDataProvider -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSummaryRowHeaderDataProvider(IDataProvider bodyDataProvider) DefaultSummaryRowHeaderDataProvider(IDataProvider bodyDataProvider, String summaryRowLabel) -
Method Summary
Modifier and TypeMethodDescriptiongetDataValue(int columnIndex, int rowIndex) Gets the value at the given column and row index.intMethods inherited from class org.eclipse.nebula.widgets.nattable.grid.data.DefaultRowHeaderDataProvider
getColumnCount, setDataValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.nebula.widgets.nattable.data.IDataProvider
getColumnCount, setDataValue
-
Field Details
-
DEFAULT_SUMMARY_ROW_LABEL
- See Also:
-
-
Constructor Details
-
DefaultSummaryRowHeaderDataProvider
-
DefaultSummaryRowHeaderDataProvider
- Parameters:
bodyDataProvider- The data provider of the connected body region.summaryRowLabel- label to display in the row header for the Summary Row
-
-
Method Details
-
getRowCount
public int getRowCount()- Specified by:
getRowCountin interfaceIDataProvider- Overrides:
getRowCountin classDefaultRowHeaderDataProvider- Returns:
- The number of rows this
IDataProviderhandles.
-
getDataValue
Description copied from interface:IDataProviderGets the value at the given column and row index.- Specified by:
getDataValuein interfaceIDataProvider- Overrides:
getDataValuein classDefaultRowHeaderDataProvider- Parameters:
columnIndex- The column index of the cell whose value is requested.rowIndex- The row index of the cell whose value is requested.- Returns:
- The data value associated with the specified cell coordintates.
-