// Need to re-create the piggybackList & set container, some refactoring should be done here
public void loadFrom(FilterablePagingProvider<T> filterablePagingProvider, FilterableCountProvider filterableCountProvider, int pageLength) {
        this.fpp = filterablePagingProvider;
        this.fcp = filterableCountProvider;
        // Need to re-create the piggybackList & set container, some refactoring should be done here
        piggybackLazyList = new LazyList<>(new LazyList.PagingProvider<T>() {
            private static final long serialVersionUID = 1027614132444478021L;
            @Override
            public List<T> findEntities(int firstRow) {
                return fpp.findEntities(firstRow,
                        getCurrentFilter());
            }
        },
                new LazyList.CountProvider() {
            private static final long serialVersionUID = -7339189124024626177L;
            @Override
            public int size() {
                return fcp.size(getCurrentFilter());
            }
        }, pageLength);
        setBic(new DummyFilterableListContainer<T>(getType(),
                piggybackLazyList));
        getSelect().setContainerDataSource(getBic());
    }
this.fpp = filterablePagingProvider;
this.fcp = filterableCountProvider;
// Need to re-create the piggybackList & set container, some refactoring should be done here
piggybackLazyList = new LazyList<>(new LazyList.PagingProvider<T>() {
private static final long serialVersionUID = 1027614132444478021L;
public void loadFrom(FilterablePagingProvider<T> filterablePagingProvider, FilterableCountProvider filterableCountProvider, int pageLength) {
this.fpp = filterablePagingProvider;
this.fcp = filterableCountProvider;
// Need to re-create the piggybackList & set container, some refactoring should be done here
piggybackLazyList = new LazyList<>(new LazyList.PagingProvider<T>() {
private static final long serialVersionUID = 1027614132444478021L;
@Override
public List<T> findEntities(int firstRow) {
return fpp.findEntities(firstRow,
getCurrentFilter());
}
},
new LazyList.CountProvider() {
private static final long serialVersionUID = -7339189124024626177L;
public void loadFrom(FilterablePagingProvider<T> filterablePagingProvider, FilterableCountProvider filterableCountProvider, int pageLength) {
this.fpp = filterablePagingProvider;
this.fcp = filterableCountProvider;
// Need to re-create the piggybackList & set container, some refactoring should be done here
piggybackLazyList = new LazyList<>(new LazyList.PagingProvider<T>() {
private static final long serialVersionUID = 1027614132444478021L;
@Override
public List<T> findEntities(int firstRow) {
return fpp.findEntities(firstRow,
getCurrentFilter());
}
},
new LazyList.CountProvider() {
private static final long serialVersionUID = -7339189124024626177L;
@Override
public int size() {
return fcp.size(getCurrentFilter());
}
}, pageLength);
setBic(new DummyFilterableListContainer<T>(getType(),
piggybackLazyList));
getSelect().setContainerDataSource(getBic());
}