changeset 2844:ad7ab4d353c4

RT-28479: [TreeTableView] TreeTableColumn onEditCommit handler not called
author jgiles
date Wed, 06 Mar 2013 16:17:38 +1300
parents 66330d32d59f
children 0251aa01fc7c
files javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/TreeTableCellBehavior.java javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/TreeTableRowBehavior.java
diffstat 2 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/TreeTableCellBehavior.java	Wed Mar 06 12:56:38 2013 +1300
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/TreeTableCellBehavior.java	Wed Mar 06 16:17:38 2013 +1300
@@ -121,8 +121,6 @@
         TreeTableColumn column = getTableColumn();
         TableSelectionModel sm = tv.getSelectionModel();
         
-        if (! sm.isCellSelectionEnabled()) return;
-        
         boolean isAlreadySelected = sm.isSelected(index, column);
 
         sm.clearAndSelect(index, column);
@@ -139,7 +137,6 @@
                 tv.edit(index, column);
             } else if (e.getClickCount() % 2 == 0) {
                 // try to expand/collapse branch tree item
-                System.out.println("is expanded: " + treeItem.isExpanded() + " -> " + ! treeItem.isExpanded());
                 treeItem.setExpanded(! treeItem.isExpanded());
             }
         }
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/TreeTableRowBehavior.java	Wed Mar 06 12:56:38 2013 +1300
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/TreeTableRowBehavior.java	Wed Mar 06 16:17:38 2013 +1300
@@ -74,9 +74,6 @@
             // TreeTableCell, we should still support selection, so that
             // is what we are doing here.
             sm.select(treeItem);
-        } else if (clickCount % 2 == 0) {
-            // try to expand/collapse branch tree item
-            treeItem.setExpanded(! treeItem.isExpanded());
         }
     }
 }