Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8110151

Tree expand/collapse graphic disappears

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.0
    • fx1.3
    • javafx
    • NetBeans 6.9 with FX running on Ubuntu.

      The TreeView widget seems to work well as long as the TreeItem 'data' field is a string. However, when I use a CustomNode for the data field the expand/collapse graphic disappears from that TreeItem. My custom node is nothing special - just an HBox that contains a toggle button, a label, and a text field.

        var tc = TreeView {
                      showRoot: false;
                      root: TreeItem {
                          data: "never see this";
                          children: [
                              TreeItem {
                                  data: "here is question 1"
                                  children: [
                                      TreeItem {
                                          data: tInteger; // this is my custom node
                                          children: [
                                              TreeItem {
                                                  data: "here is question 1.1.1";
                                              }
                                          ];
                                      }
                                  ];
                              },
                          ]
                      }
                  }

            jgiles Jonathan Giles
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: