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

Stage properties fullScreen and iconified must be non-bindable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0
    • Component/s: javafx

      Description

      The Stage properties "fullScreen" and "iconified" must be non-bindable. In both cases, they are properties that can be modified in response to end-user actions which are external to the application. The runtime must be able to set their values in response to these external actions.

      There are two choices.

      1) We can extend the pattern used by Window for the x, y, width, height properties and create an internal NonBindableBoolean class which will throw a RuntimeException if an application attempts to bind to them.

      2) We can change the pattern for these two and for Window x, y, width, height such that the properties are defined as ReadOnlyProperty with a public set method. The latter pattern is a better choice since it prevents the users from binding to them at compile time rather than relying on a runtime exception. I will file a new issue for this.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ekrejcir Eva Krejčířová (Inactive)
                Reporter:
                kcr Kevin Rushforth
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: