Skip to content

Commit

Permalink
Use setItemsPageable
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur- committed Jan 8, 2025
1 parent 54dc6cc commit 2826a4c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2967,7 +2967,7 @@ public interface CountCallback<PAGEABLE> extends Serializable {
* component will automatically fetch more items and adjust its size until
* the backend runs out of items. Usage example:
* <p>
* {@code component.setItemsSpring(pageable -> orderService.getOrders(pageable));}
* {@code component.setItemsPageable(pageable -> orderService.getOrders(pageable));}
* <p>
* The returned data view object can be used for further configuration, or
* later on fetched with {@link #getLazyDataView()}. For using in-memory
Expand All @@ -2979,7 +2979,7 @@ public interface CountCallback<PAGEABLE> extends Serializable {
* backend based on the given pageable
* @return a data view for further configuration
*/
public GridLazyDataView<T> setItemsSpring(
public GridLazyDataView<T> setItemsPageable(
Spring.FetchCallback<Pageable, T> fetchCallback) {
return setItems(
query -> handleSpringFetchCallback(query, fetchCallback));
Expand All @@ -2992,7 +2992,7 @@ public GridLazyDataView<T> setItemsSpring(
* user benefits from the component showing immediately the exact size.
* Usage example:
* <p>
* {@code component.setItemsSpring(
* {@code component.setItemsPageable(
* pageable -> orderService.getOrders(pageable),
* pageable -> orderService.countOrders());}
* <p>
Expand All @@ -3008,7 +3008,7 @@ public GridLazyDataView<T> setItemsSpring(
* a function that returns the number of items in the back end
* @return LazyDataView instance for further configuration
*/
public GridLazyDataView<T> setItemsSpring(
public GridLazyDataView<T> setItemsPageable(
Spring.FetchCallback<Pageable, T> fetchCallback,
Spring.CountCallback<Pageable> countCallback) {
return setItems(
Expand Down

0 comments on commit 2826a4c

Please sign in to comment.