changeset 2121:30898a2b4367

RT-26505: Allow for configurable treeColumn property on TreeTableView (update display when tree column is changed at runtime).
author jgiles
date Thu, 03 Jan 2013 14:37:48 +1300
parents d59e349b4963
children 4323ceace542
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TreeTableRowSkin.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TreeTableRowSkin.java	Thu Jan 03 14:13:49 2013 +1300
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TreeTableRowSkin.java	Thu Jan 03 14:37:48 2013 +1300
@@ -70,6 +70,7 @@
         registerChangeListener(control.indexProperty(), "INDEX");
         registerChangeListener(control.treeTableViewProperty(), "TREE_TABLE_VIEW");
         registerChangeListener(control.treeItemProperty(), "TREE_ITEM");
+        registerChangeListener(control.getTreeTableView().treeColumnProperty(), "TREE_COLUMN");
     }
     
     @Override protected void handleControlPropertyChanged(String p) {
@@ -84,6 +85,9 @@
             }
         } else if ("TREE_ITEM".equals(p)) {
             updateDisclosureNode();
+        } else if ("TREE_COLUMN".equals(p)) {
+            updateCells = true;
+            requestLayout();
         }
     }