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

Selection operator for arrays, List and Map

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:
      None
    • Subcomponent:

      Description

      There sometimes is a need to select from properties of type array, List or Map in FXML. While in Java code there are helpers for that in the form of Bindings.valueAt() variants, unfortunately there is no syntax for that in pure FXML.

      Hence we like to propose the adoption of the following syntax:

      "${property[key]}"

      The effect would be the same as if Java code would contain the line "Bindings.valueAt(property, key)", where "key" can by int for List-typed or Array-typed properties, or Object for Map-typed properties.

      Having such a syntax would allow application developers to become more productive, as Java Code can be replaced by simple FXML expressions.

      We would be really happy if a future release of JavaFX would provide this.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            mkarg Markus Karg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: