use of com.google.gwt.view.client.Range in project blogwt by billy1380.
the class ResourceController method onRangeChanged.
/* (non-Javadoc)
*
* @see
* com.google.gwt.view.client.AbstractDataProvider#onRangeChanged(com.google
* .gwt.view.client.HasData) */
@Override
protected void onRangeChanged(HasData<Resource> display) {
Range range = display.getVisibleRange();
pager.start(Integer.valueOf(range.getStart())).count(Integer.valueOf(range.getLength()));
fetchResources();
}
use of com.google.gwt.view.client.Range in project blogwt by billy1380.
the class RoleController method onRangeChanged.
/* (non-Javadoc)
*
* @see
* com.google.gwt.view.client.AbstractDataProvider#onRangeChanged(com.google
* .gwt.view.client.HasData) */
@Override
protected void onRangeChanged(HasData<Role> display) {
Range range = display.getVisibleRange();
pager.start(Integer.valueOf(range.getStart())).count(Integer.valueOf(range.getLength()));
fetchRoles();
}
use of com.google.gwt.view.client.Range in project rstudio by rstudio.
the class HistoryPresenter method refreshHistory.
private void refreshHistory() {
strategy_.refreshCount();
view_.getDataDisplay().setVisibleRangeAndClearData(new Range(0, 100), true);
}
use of com.google.gwt.view.client.Range in project rstudio by rstudio.
the class Pager method setPageStart.
@Override
public void setPageStart(int index) {
HasRows display = getDisplay();
if (display != null) {
Range range = display.getVisibleRange();
int pageSize = range.getLength();
index = Math.max(0, index);
if (index != range.getStart()) {
display.setVisibleRange(index, pageSize);
}
}
}
use of com.google.gwt.view.client.Range in project blogwt by billy1380.
the class MetaNotificationController method onRangeChanged.
/* (non-Javadoc)
*
* @see
* com.google.gwt.view.client.AbstractDataProvider#onRangeChanged(com.google
* .gwt.view.client.HasData) */
@Override
protected void onRangeChanged(HasData<MetaNotification> display) {
Range range = display.getVisibleRange();
pager.start(Integer.valueOf(range.getStart())).count(Integer.valueOf(range.getLength()));
fetchMetaNotifications();
}
Aggregations