Release NeitzelLib 1.0.1 with declarative DataGrid controls and saved setups

This commit is contained in:
2026-11-18 08:31:03 +01:00
parent 91d9cdccaa
commit 257e0edb28
66 changed files with 6378 additions and 273 deletions
@@ -0,0 +1,27 @@
package de.neitzel.grid;
import java.util.*;
/** Stable typed identity, independent of labels, page position and row identity. */
public record GroupPath(List<Segment> segments) {
public record Segment(String columnId, FilterValue value) {
public Segment {
Checks.id(columnId);
}
}
public GroupPath {
segments = List.copyOf(segments);
if (segments.isEmpty()) throw new IllegalArgumentException("Empty group path");
Set<String> seen = new HashSet<>();
for (var segment : segments)
if (!seen.add(segment.columnId()))
throw new IllegalArgumentException("Repeated group column");
}
public GroupPath child(String column, FilterValue value) {
var next = new ArrayList<>(segments);
next.add(new Segment(column, value));
return new GroupPath(next);
}
}