Offer grid row attributes and qualify Archiver folder profile editing

This commit is contained in:
2026-11-25 13:17:24 +01:00
parent ff6ba0a745
commit 9c63b2dd0f
10 changed files with 560 additions and 78 deletions
@@ -260,7 +260,23 @@ final class GridDockEditor extends VBox {
"minimumWidth ≤ width ≤ maximumWidth. FXML references are resolved at runtime."));
} else value.setTooltip(null);
value.setPromptText(hint);
value.getItems().setAll(GridDockDocument.options(field));
if ("attribute".equals(field) || "groupAttribute".equals(field)) {
var columns = doc.branches(doc.parentOfType(e, "DataGrid"));
value
.getItems()
.setAll(
columns.stream()
.map(
column ->
column.getAttribute(
column.hasAttribute("attribute") ? "attribute" : "id"))
.filter(name -> !name.isBlank())
.distinct()
.toList());
value.setTooltip(
new Tooltip(
"Row attributes used by this grid. You can also enter another row attribute."));
} else value.getItems().setAll(GridDockDocument.options(field));
value.setValue(e.getAttribute(field));
value.getEditor().setText(e.getAttribute(field));
}