use of com.google.gwt.view.client.Range in project blogwt by billy1380.
the class PostController method onRangeChanged.
/* (non-Javadoc)
*
* @see
* com.google.gwt.view.client.AbstractDataProvider#onRangeChanged(com.google
* .gwt.view.client.HasData) */
@Override
protected void onRangeChanged(HasData<Post> display) {
Range range = display.getVisibleRange();
pager.start(Integer.valueOf(range.getStart())).count(Integer.valueOf(range.getLength())).sortDirection(SortDirectionType.SortDirectionTypeDescending);
fetchPosts();
}
use of com.google.gwt.view.client.Range in project blogwt by billy1380.
the class UserController method onRangeChanged.
/* (non-Javadoc)
*
* @see
* com.google.gwt.view.client.AbstractDataProvider#onRangeChanged(com.google
* .gwt.view.client.HasData) */
@Override
protected void onRangeChanged(HasData<User> display) {
Range range = display.getVisibleRange();
pager.start(Integer.valueOf(range.getStart())).count(Integer.valueOf(range.getLength()));
fetchUsers();
}
Aggregations