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

Add observeProperty method to FilteredList and SortedList for more powerful live mode

    XMLWordPrintable

    Details

    • Subcomponent:

      Description

      One typical usecase for a FilteredList (or SortedList) is to be the source for a ListView or Table which should be updated when some user-editable controls change. For example a ListView + TextBox, where the LV will show only those rows that contain the substring entered by the user into the TextBox.
      Currently to solve this one would make a FilteredList in batch mode the source of the ListView and in the onKeyReleased handler of the TextBox one would call filter(). A more convenient way to do this would be to add the FilteredList in live mode and call some method like myFilteredList.observeProperty(myTextBox.textProperty());
      Now the Matcher would not only be fired when the underlying ObservableList of the FilteredList gets modified, but also when the TextBox changes.
      An unobserveProperty() method would fit in well too.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            athiemejfx Andre Thieme (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Imported: