Edit popup menu commands and literal DataGrid group keys
This commit is contained in:
@@ -110,19 +110,19 @@ public final class FolderActionsTargetProbe {
|
||||
}
|
||||
}
|
||||
|
||||
private static List<?> rows(Node grid) throws Exception {
|
||||
static List<?> rows(Node grid) throws Exception {
|
||||
return (List<?>) grid.getClass().getMethod("getItems").invoke(grid);
|
||||
}
|
||||
|
||||
private static String attr(Object row, String name) throws Exception {
|
||||
static String attr(Object row, String name) throws Exception {
|
||||
return (String) row.getClass().getMethod(name).invoke(row);
|
||||
}
|
||||
|
||||
private static void select(Node grid, List<String> keys) throws Exception {
|
||||
static void select(Node grid, List<String> keys) throws Exception {
|
||||
grid.getClass().getMethod("selectKeys", Collection.class).invoke(grid, keys);
|
||||
}
|
||||
|
||||
private static MenuItem move(Node grid, String file) {
|
||||
static MenuItem move(Node grid, String file) {
|
||||
Node anchor =
|
||||
grid.lookupAll(".label").stream()
|
||||
.filter(n -> n instanceof Label l && l.getText().equals(file))
|
||||
|
||||
Reference in New Issue
Block a user