title: Javafx update tableview on Checkbox change
body: <p>I have an huge amount of data which i display with TableView in JavaFX. With help of <a href="http://code.makery.ch/blog/javafx-8-tableview-sorting-filtering/" rel="nofollow noreferrer">JavaFX 8 Sortung Filtering</a> i was able to implement the filter depending on the input (TextField). There are only a few different states which a entry is able to have, so i want to make a quickselect with Checkboxes.<br />
  For example: The user want to see all rows with state &quot;In Progress&quot; or &quot;Completed&quot;. So he checks the two checkboxes with the specific states.</p>
  <p>How do I have to implement the specific Listener, that the TableView is going to show only the filtered data?</p>
  <p>My code so far:</p>
  <pre><code>ChangeListener&lt;Boolean&gt; cbStateChangeListener = new ChangeListener&lt;Boolean&gt;() {  
      @Override
          public void changed(ObservableValue&lt;? extends Boolean&gt; ov, Boolean old_val, Boolean new_val) {
              if (new_val){
                 
              }
          }
      };
  </code></pre>
  <p>How to proceed in the if-statement?</p>