Search in sources :

Example 11 with Range

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();
}
Also used : Range(com.google.gwt.view.client.Range)

Example 12 with Range

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();
}
Also used : Range(com.google.gwt.view.client.Range)

Aggregations

Range (com.google.gwt.view.client.Range)12 HasRows (com.google.gwt.view.client.HasRows)2 NumberFormat (com.google.gwt.i18n.client.NumberFormat)1 AbstractHasData (com.google.gwt.user.cellview.client.AbstractHasData)1 RpcObjectList (org.rstudio.core.client.jsonrpc.RpcObjectList)1 ServerError (org.rstudio.studio.client.server.ServerError)1