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

Tree expand/collapse graphic disappears

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx1.3
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Environment:

      NetBeans 6.9 with FX running on Ubuntu.

      Description

      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";
                                              }
                                          ];
                                      }
                                  ];
                              },
                          ]
                      }
                  }

        Attachments

          Activity

            People

            • Assignee:
              jgiles Jonathan Giles
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: