Accept literal group keys in DataGrid column FXML

This commit is contained in:
2026-11-25 13:30:55 +01:00
parent 9522ed90ce
commit 2625616b2f
3 changed files with 27 additions and 0 deletions
@@ -21,6 +21,12 @@ public final class DataGridColumn {
@Setter(lombok.AccessLevel.NONE)
private final java.util.Map<String, String> groupLabels = new java.util.LinkedHashMap<>();
/** Adds one FXML group label whose key can contain spaces, paths or other non-name characters. */
public static void setGroupLabel(DataGridColumn column, javafx.util.Pair<String, String> entry) {
column.groupLabels.put(java.util.Objects.requireNonNull(entry.getKey(), "group key"),
java.util.Objects.requireNonNull(entry.getValue(), "group label"));
}
private double width = 150;
private double minimumWidth = 80;
private double maximumWidth = 1200;