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

More flexible disclosure nodes for TreeView

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • fx2.1
    • javafx
    • JavaFX 2.1b18

      1) When setting the DisclosureNode to something that renders *smaller* (less wide) than the normal node (for example, an empty label), all the nodes that can be expanded will be rendered correctly (as far left as possible), but nodes that cannot be expanded are rendered with the same indent as the width of the 'standard' disclosure node. However, setting a *wider* disclosure node will cause the normal unexpandable nodes to make extra room (as expected). This seems inconsistent.

      2) There is no way to completely remove the disclosure node or render it at a different position (on the right for example). Rendering your own node still leaves some undesired space on the left no matter what you do (making the disclosure node invisible, unmanaged, 0 pixels wide, etc..)

      For my use case it looks better to have a different kind of marker to indicate a node is expandable (it is indicated by a styled label called "collection").

      Submitted as a bug because behaviour of (1) seems incorrect.

            Unassigned Unassigned
            jhendrikx John Hendrikx
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported: