private void updateLoadingState() {
        final int cacheSize = getVisibleItemCount();
        final int curPageSize = isRowCountExact()
                ? getCurrentPageSize()
                : getPageSize();
        if (cacheSize >= curPageSize) {
            view.setLoadingState(LoadingState.LOADED);
        } else if (cacheSize == 0) {
            view.setLoadingState(LoadingState.LOADING);
        } else {
            view.setLoadingState(LoadingState.PARTIALLY_LOADED);
        }
    }
Update the loading state of the view based on the data size and page
size.
stroom-core-client-widget/src/main/java/com/google/gwt/user/cellview/client/HasDataPresenter.java