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

Introduce bindable properties for bounds

    XMLWordPrintable

Details

    Description

      I propose to introduce width and height properties for Node object that are binded to getLayoutBounds().getWidth() and getHeight() respectively.

      I'm asking this for the following reason: currently it is not possible to bind to Node's width and height. Actually you need to obtain layout bounds object and the get its width and height instead of just straitforward binding to two properties.

      Those properties could look like this:

      DoubleBinding() {

        { bind(layoutBoundsProperty(); }

        @Override public double computeValue() {
          return getLayoutBounds().getWidth();
        }

      }

      Attachments

        1. BindableBounds.java
          3 kB
        2. ReadOnlyBoundsProperty.java
          3 kB
        3. rt-closed-diff.diff
          4 kB
        4. rt-diff.diff
          0.9 kB

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Imported: