Skip to content

Commit

Permalink
docs: fix incorrect getOffset() usage in ComboBox JavaDoc (#6900) (#6901
Browse files Browse the repository at this point in the history
)

Co-authored-by: Serhii Kulykov <[email protected]>
  • Loading branch information
vaadin-bot and web-padawan authored Dec 11, 2024
1 parent 7ae11b8 commit a5e7562
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ public ComboBoxLazyDataView<TItem> getLazyDataView() {
* <p>
* {@code comboBox.setItemsWithFilterConverter(
* query -> orderService.getOrdersByCount(query.getFilter(),
* query.getOffset,
* query.getOffset(),
* query.getLimit()),
* orderCountStr -> Integer.parseInt(orderCountStr));} Note: Validations for
* <code>orderCountStr</code> are omitted for briefness.
Expand Down Expand Up @@ -840,7 +840,7 @@ public <C> ComboBoxLazyDataView<TItem> setItemsWithFilterConverter(
* <p>
* {@code comboBox.setItemsWithFilterConverter(
* query -> orderService.getOrdersByCount(query.getFilter(),
* query.getOffset,
* query.getOffset(),
* query.getLimit()),
* query -> orderService.getSize(query.getFilter()),
* orderCountStr -> Integer.parseInt(orderCountStr));} Note: Validations for
Expand Down Expand Up @@ -921,14 +921,14 @@ public ComboBoxLazyDataView<TItem> setItems(
* exact size. Usage example without component provided filter:
* <p>
* {@code comboBox.setItems(
* query -> orderService.getOrders(query.getOffset, query.getLimit()),
* query -> orderService.getOrders(query.getOffset(), query.getLimit()),
* query -> orderService.getSize());}
* <p>
* Since ComboBox supports filtering, it can be fetched via
* query.getFilter():
* <p>
* {@code comboBox.setItems(
* query -> orderService.getOrders(query.getFilter(), query.getOffset,
* query -> orderService.getOrders(query.getFilter(), query.getOffset(),
* query.getLimit()),
* query -> orderService.getSize(query.getFilter()));}
* <p>
Expand Down

0 comments on commit a5e7562

Please sign in to comment.