TableWrapper without pager now always shows Integer.MAX_VALUE rows

Change-Id: Ie4a10cb41a393798c27463c0683d63185b693eb4
This commit is contained in:
Axel Uhl committed 2019-06-15 14:28:36 +02:00
1 parent 2896bbfbac
commit 243dcd7e37
2 files changed
+8 -2

No files matched your search

@@ -32,7 +32,6 @@ public class RaceTableWrapper<S extends RefreshableSelectionModel<RaceColumnDTOA
public RaceTableWrapper(SailingServiceAsync sailingService, StringMessages stringMessages,
ErrorReporter errorReporter, boolean multiSelection) {
super(sailingService, stringMessages, errorReporter, multiSelection, /* enablePager */ false,
/* paging size */ Integer.MAX_VALUE,
new EntityIdentityComparator<RaceColumnDTOAndFleetDTOWithNameBasedEquality>() {
@Override
public boolean representSameEntity(RaceColumnDTOAndFleetDTOWithNameBasedEquality dto1,
@@ -20,10 +20,17 @@ extends com.sap.sse.gwt.client.celltable.TableWrapper<T, S, StringMessages, Admi
protected static final int DEFAULT_PAGING_SIZE = 100;
protected final SailingServiceAsync sailingService;
/**
* @param enablePager if {@code true}, a paging control will be shown; this constructor, other than
* {@link #TableWrapper(SailingServiceAsync, StringMessages, ErrorReporter, boolean, boolean, int, EntityIdentityComparator)},
* uses a {@link #DEFAULT_PAGING_SIZE} of 100 elements shown. If the {@code enablePager} parameter is
* {@code false}, no pager will be shown and the paging size will be set to {@link Integer#MAX_VALUE}.
*/
public TableWrapper(SailingServiceAsync sailingService, final StringMessages stringMessages,
ErrorReporter errorReporter, boolean multiSelection, boolean enablePager,
EntityIdentityComparator<T> entityIdentityComparator) {
this(sailingService, stringMessages, errorReporter, multiSelection, enablePager, DEFAULT_PAGING_SIZE,
this(sailingService, stringMessages, errorReporter, multiSelection, enablePager,
enablePager ? DEFAULT_PAGING_SIZE : Integer.MAX_VALUE /* if no pager, show all */,
entityIdentityComparator);
}