{@link #onRangeChanged(com.google.gwt.view.client.HasData)} is called when the table requests a new
range of data. You can push data back to the displays using
{@link #updateRowData(int, java.util.List)}.
552141
@Override
    protected void onRangeChanged(HasData<RecordList.Record> display) {

        // Get the new range required.
        range = display.getVisibleRange();
        //if it is the last page don't load more results
        if(display.getRowCount()%range.getLength()!= 0 && display.getRowCount() > 0 && range.getStart() > previousRange.getStart()){
            display.setVisibleRange(previousRange.getStart(), previousRange.getLength());
        }

        updateResults(range.getStart(), range.getLength());
        previousRange = range;
    }
735649
public void addData(final Data DATA) {
        sum += DATA.getValue();
        window.add(DATA);
        if (window.size() > numberPeriod) {
            sum -= window.remove().getValue();
        }
    }
105315
public void appendUpdateEvent(final Object rowKey, final int colIndex, final Object rowData, final Object oldValue,
                final Object newValue) {
        updates.add(new SheetUpdate(rowKey, colIndex, rowData, oldValue, newValue));
    }
963770
def _itemsLoadedDone(self, data):
        
        if data is None:
            return
        self.continuation   = data.get('continuation', None)
        self.lastUpdated    = data.get('updated', None)
        self.lastLoadLength = len(data.get('items', []))
        self.googleReader.itemsToObjects(self, data.get('items', []))
        self.lastLoadOk = True
1102193
function dataWatchFn(newData, oldData) {
                        if (newData !== oldData){
                            if (!scope._config.disabled) {
                                scope._config.refreshDataOnly ? scope.api.update() : scope.api.refresh(); // if wanted to refresh data only, use update method, otherwise use full refresh.
                            }
                        }
                    }
1087694
@EventHandler("change")
    private void onChange(ChangeEvent event) {
        // When the custom range item is selected, triggers the display of the date range dialog.
        if (event.getRelatedTarget() == customItem) {
            event.stopPropagation();
            DateRangeDialog.show((range) -> {
                setSelectedItem(range == null ? lastSelectedItem : addChoice(range, true));
                checkSelection(false);
            });
            
        }
841170
private void addSwatchToRow(TableRow row, View swatch, int rowNumber) {
        if (rowNumber % 2 == 0) {
            row.addView(swatch);
        } else {
            row.addView(swatch, 0);
        }
    }
840280
private void onCacheEntryUpdated(ItemData data)
   {
      if (data == null || data instanceof NullItemData)
      {
         return;
      }
      for (WorkspaceStorageCacheListener listener : listeners)
      {
         try
         {
            listener.onCacheEntryUpdated(data);
         }
         catch (RuntimeException e) //NOSONAR
         {
            LOG.warn("The method onCacheEntryUpdated fails for the listener " + listener.getClass(), e);
         }
      }
   }
1058853
@Override
	public void setData(final Object data) {
		UIContext uic = UIContextHolder.getCurrent();

		if (uic == null) {
			getComponentModel().setData(data);
		} else {
			Object sharedValue = ((BeanAndProviderBoundComponentModel) getDefaultModel()).getData();

			if (getBeanProperty() != null) {
				sharedValue = getBeanValue();
			}

			getOrCreateComponentModel().setData(data);
			setFlag(ComponentModel.USER_DATA_SET, !Util.equals(data, sharedValue));
		}
	}
196684
public void setWrappedData(Object data) {
        if (data == null) {
            inner = null;
            arrayFromInner = null;
            setRowIndex(-1);
        } else {
            inner = (Collection<E>) data;            
            arrayFromInner = (E[]) new Object[inner.size()];
            inner.toArray(arrayFromInner);
            setRowIndex(0);
        }
    }
718685
private void updateBeanValueCurrentPageOnly() {
		WDataTableRowRenderer rowRenderer = (WDataTableRowRenderer) repeater.getRepeatedComponent();
		TableDataModel model = getDataModel();

		// The bean list for the repeater is a list of Integer row indices
		for (Integer rowBean : (List<Integer>) repeater.getBeanList()) {
			int row = rowBean;
			UIContext rowContext = repeater.getRowContext(rowBean, row);
			final int columnCount = getColumnCount();

			for (int col = 0; col < columnCount; col++) {
				if (model.isCellEditable(row, col)) {
					// The actual component is wrapped in a renderer wrapper, so we have to fetch it from that
					WComponent renderer = ((Container) rowRenderer.getRenderer(col)).getChildAt(0);

					if (renderer instanceof DataBound) {
						Object oldValue = model.getValueAt(row, col);

						UIContextHolder.pushContext(rowContext);
						Object newValue = null;

						try {
							newValue = ((DataBound) renderer).getData();
						} finally {
							UIContextHolder.popContext();
						}

						if (!Util.equals(oldValue, newValue)) {
							model.setValueAt(newValue, row, col);
						}
					}
				}
			}
		}
	}
143322
private synchronized void fireProgressUpdated(TableRowProgressMonitor source) {
    int row = monitors.indexOf(source);
    if (row >= 0) {
      fireTableCellUpdated(row, PROGRESS_COLUMN);
    }
  }
1344833
public DateRange getSelectedRange() {
        Dateitem selected = getSelectedItem();
        return selected == null ? null : (DateRange) selected.getData();
    }
1307435
public void intervalAdded (ListDataEvent e)
    {
        int start = e.getIndex0(), count = e.getIndex1() - start + 1;

        // adjust the selected index
        if (_selectedIndex >= start) {
            _selectedIndex += count;
        }

        // add buttons for the new interval
        addButtons(start, count);
    }
241166
public void notifyAdapterDataSetChanged() {
        // handle our extensions
        for (IAdapterExtension<Item> ext : mExtensions.values()) {
            ext.notifyAdapterDataSetChanged();
        }
        cacheSizes();
        notifyDataSetChanged();
    }
648061
void updateDataFields(int why) {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "updateDataFields");
    super.updateDataFields(why);
    if (bodyList != null && bodyList.isChanged())
       getPayload().setField(JmsStreamBodyAccess.BODY_DATA_VALUE, bodyList.getList());
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "updateDataFields");
  }
667455
private void updateDomainAxisRange()
    {
        int count = dataSet.getSeries(0).getItemCount();
        if (count < SHOW_FIXED_GENERATIONS)
        {
            domainAxis.setRangeWithMargins(0, SHOW_FIXED_GENERATIONS);
        }
        else if (allDataButton.isSelected())
        {
            domainAxis.setRangeWithMargins(0, Math.max(SHOW_FIXED_GENERATIONS, count));
        }
        else
        {
            domainAxis.setRangeWithMargins(count - SHOW_FIXED_GENERATIONS, count);
        }
    }