Add compatible DataGrid, filter editors, themes and JDBC example

This commit is contained in:
2026-11-16 17:29:19 +01:00
parent a35664dabe
commit 889846ca19
102 changed files with 10970 additions and 14 deletions
@@ -0,0 +1,16 @@
package de.neitzel.grid;
/** Source-level page support; filter semantics are validated separately. */
public record SourceCapabilities(boolean exactTotal, boolean all, int maximumPageSize) {
public SourceCapabilities {
if (maximumPageSize <= 0) throw new IllegalArgumentException("Invalid maximum page size");
}
public void validate(PageRequest request) {
java.util.Objects.requireNonNull(request);
if (request instanceof PageRequest.All && !all)
throw new IllegalArgumentException("Source does not support All");
if (request instanceof PageRequest.Paged p && p.pageSize() > maximumPageSize)
throw new IllegalArgumentException("Unsupported page size");
}
}