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 theRowHeaderLayer
if theSummaryRowLayer
is present in the body layer stack. This adds an extra row to the row header for displaying the summary row.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_SUMMARY_ROW_LABEL
-
Fields inherited from class org.eclipse.nebula.widgets.nattable.grid.data.DefaultRowHeaderDataProvider
bodyDataProvider
-
-
Constructor Summary
Constructors Constructor Description DefaultSummaryRowHeaderDataProvider(IDataProvider bodyDataProvider)
DefaultSummaryRowHeaderDataProvider(IDataProvider bodyDataProvider, String summaryRowLabel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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:
bodyDataProvider
- The data provider of the connected body region.summaryRowLabel
- label to display in the row header for the Summary Row
-
-
Method Detail
-
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interfaceIDataProvider
- Overrides:
getRowCount
in classDefaultRowHeaderDataProvider
- Returns:
- The number of rows this
IDataProvider
handles.
-
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 interfaceIDataProvider
- Overrides:
getDataValue
in 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.
-
-