public class NullDataSource extends Object implements GridDataSource
GridDataSource used when the value null is provided as the
source.| Constructor and Description |
|---|
NullDataSource() |
| Modifier and Type | Method and Description |
|---|---|
int |
getAvailableRows()
Returns the number of rows available in the data source.
|
Class |
getRowType()
Returns the type of value in the rows, or null if not known.
|
Object |
getRowValue(int index)
Returns the row value at the provided index.
|
void |
prepare(int startIndex,
int endIndex,
List<SortConstraint> sortConstraints)
Invoked to allow the source to prepare to present values.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAvailableRows, isEmptypublic NullDataSource()
public int getAvailableRows()
GridDataSourcegetAvailableRows in interface GridDataSourcepublic Class getRowType()
GridDataSourceBeanModel when no such model is explicitly provided.getRowType in interface GridDataSourcepublic void prepare(int startIndex, int endIndex, List<SortConstraint> sortConstraints)
GridDataSourceprepare in interface GridDataSourcestartIndex - the starting index to be retrievedendIndex - the ending index to be retrievedsortConstraints - identify how data is to be sortedpublic Object getRowValue(int index)
GridDataSourceGridDataSource.getAvailableRows() may return a different number of rows than are actually available (i.e., the database
was changed between calls to GridDataSource.getAvailableRows() and the call to GridDataSource.prepare(int, int,
java.util.List)). In that case, this method should return null for any out-of-range indexes.getRowValue in interface GridDataSource5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.