* Set the range of rows to push for next response.
*
* @param pushRows
+ * @since 8.1
*/
protected void setPushRows(Range pushRows) {
this.pushRows = pushRows;
* Get the current range of rows to push in the next response.
*
* @return the range of rows to push
+ * @since 8.1
*/
protected Range getPushRows() {
return pushRows;
/**
* Get the object used for filtering in this data communicator.
- *
+ *
* @return the filter object of this data communicator
+ * @since 8.1
*/
protected Object getFilter() {
return filter;
/**
* Get the client rpc interface for this data communicator.
- *
+ *
* @return the client rpc interface for this data communicator
+ * @since 8.1
*/
protected DataCommunicatorClientRpc getClientRpc() {
return rpc;
* the index of the first cached row
* @param cacheSize
* the number of cached rows
+ * @since 8.1
*/
protected void onRequestRows(int firstRowIndex, int numberOfRows,
int firstCachedRowIndex, int cacheSize) {
*
* @param keys
* the keys of the rows that have been dropped
+ * @since 8.1
*/
protected void onDropRows(JsonArray keys) {
for (int i = 0; i < keys.length(); ++i) {
*
* @param initial
* {@code true} if initial data load, {@code false} if not
+ * @since 8.1
*/
protected void sendDataToClient(boolean initial) {
if (getDataProvider() == null) {
* Returns the active data handler.
*
* @return the active data handler
+ * @since 8.1
*/
protected ActiveDataHandler getActiveDataHandler() {
return handler;
* Returns the currently set updated data.
*
* @return the set of data that should be updated on the next response
+ * @since 8.1
*/
protected Set<T> getUpdatedData() {
return updatedData;
* Returns the {@link Comparator} to use with in-memory sorting.
*
* @return comparator used to sort data
+ * @since 8.1
*/
public Comparator<T> getInMemorySorting() {
return inMemorySorting;
* Returns the {@link QuerySortOrder} to use with backend sorting.
*
* @return list of sort order information to pass to a query
+ * @since 8.1
*/
public List<QuerySortOrder> getBackEndSorting() {
return backEndSorting;
* the custom data communicator to set
* @see #Grid()
* @see #Grid(PropertySet, DataCommunicator)
+ * @since 8.1
*/
protected Grid(DataCommunicator<T> dataCommunicator) {
this(new PropertySet<T>() {
* the property set implementation to use, not <code>null</code>.
* @param dataCommunicator
* the data communicator to use, not<code>null</code>
+ * @since 8.1
*/
protected Grid(PropertySet<T> propertySet,
DataCommunicator<T> dataCommunicator) {