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

Support bi-directional binding for the 'value' of a ChoiceBox

    XMLWordPrintable

Details

    Description

      Currently the ChoiceBox uses a SelectionModel to define the selected 'value'. Since the selectedItem is read-only this does not support bi-directional binding in a way that is easy for use in typical data entry screens (i.e. forms) or FXML.

      A suggestion is to include a valueProperty in ChoiceBox directly that is synchronized with the selectedItem. This valueProperty would then allow for bi-directional binding and would update the selection model accordingly (e.g. by calling select(Item)).

      Attachments

        Activity

          People

            psomashe Parvathi Somashekar (Inactive)
            dzwolenskjfx Daniel Zwolenski (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: