You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2020/08/07 07:08:03 UTC
[isis] branch master updated: ISIS-2340: fx collection view: object
ref. clicks need an interact. ctx
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git
The following commit(s) were added to refs/heads/master by this push:
new 269bc24 ISIS-2340: fx collection view: object ref. clicks need an interact. ctx
269bc24 is described below
commit 269bc24a500fedd144dee90a6188318e79222471
Author: Andi Huber <ah...@apache.org>
AuthorDate: Fri Aug 7 09:07:47 2020 +0200
ISIS-2340: fx collection view: object ref. clicks need an interact. ctx
---
.../viewer/javafx/ui/components/collections/TableViewFx.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/incubator/viewers/javafx/ui/src/main/java/org/apache/isis/incubator/viewer/javafx/ui/components/collections/TableViewFx.java b/incubator/viewers/javafx/ui/src/main/java/org/apache/isis/incubator/viewer/javafx/ui/components/collections/TableViewFx.java
index fbd5d57..85d6ef3 100644
--- a/incubator/viewers/javafx/ui/src/main/java/org/apache/isis/incubator/viewer/javafx/ui/components/collections/TableViewFx.java
+++ b/incubator/viewers/javafx/ui/src/main/java/org/apache/isis/incubator/viewer/javafx/ui/components/collections/TableViewFx.java
@@ -154,9 +154,9 @@ public class TableViewFx extends VBox {
firstColumn.setCellValueFactory(cellDataFeatures -> {
val objectIcon = uiContext.getJavaFxViewerConfig().getObjectFallbackIcon();
val uiObjectRefLink = _fx.bottonForImage(objectIcon, 24, 24);
- val targetObject = cellDataFeatures.getValue();
-
- uiObjectRefLink.setOnAction(e->{uiContext.route(targetObject);});
+ uiObjectRefLink.setOnAction(e->{
+ uiContext.route(cellDataFeatures::getValue);
+ });
return _fx.newObjectReadonly(uiObjectRefLink);
});