title: JavaFX FilteredList, filtering based on property of items in the list
body: <p>I have a case where I need to filter a <code>ObservableList&lt;Item&gt;</code> based on some properties of the items (i.e. the condition is internal and not external). I found out that javafx has <code>FilteredList</code> so I tried it. I could set the predicate and filtering works, until the property value that determines the filtering changes. Setting the predicate is done now like following:</p>
  
  <pre><code>list.setPredicate(t -&gt; !t.filteredProperty().get())
  </code></pre>
  
  <p>Since the predicate returns boolean and not BooleanProperty, the changes to that property are not reflected on the list.</p>
  
  <p>Is there any easy solution to this? I could try to do some workarounds, e.g. create a separate list and sync that, or reset the predicate every time the property changes in one item hopefully retriggering the filtering, but I first wanted to ask in case someone knows a pretty solution as those workarounds certainly are not.</p>