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

Introduce CustomNode

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • fx2.0, 8
    • javafx
    • None

      In many cases there is a need to limit access to the Parent's children. Currently it requires to extend Parent or Region and handle all layout and related stuff manually. This is inconvenient.

      I propose to implement CustomNode which has all the features of encapsulated Node object but doesn't provide access to its children from outside.

      So the following two nodes behave exactly the same way:

      new CustomNode() {
        {
          setNode(new StackPane());
        }
      };

      and just:

      new StackPane();

            Unassigned Unassigned
            mrkam Alexander Kuznetcov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Imported: