title: JavaFX - how to set CellFactory for specific TreeItem
body: <p>I have a TreeView, with many TreeItem. what i want to do is that i enable modification for the selected TreeItem and disable it for others.
  To get all the TreeView to be modifiable i use : </p>
  
  <pre><code>    syTree.setEditable(true);
      syTree.setCellFactory(TextFieldTreeCell.forTreeView());
  
          }
  
          syTree.setOnEditCommit(new EventHandler&lt;TreeView.EditEvent&lt;String&gt;&gt;() {
              @Override
              public void handle(TreeView.EditEvent&lt;String&gt; t) {      
  
  syTree.getRoot().getChildren().set(syTree.getRow(t.getTreeItem()), new TreeItem&lt;String&gt;(t.getNewValue()));
                  System.out.println("setOnEditCommit");
                  //}
              }
  
          });
          syTree.setOnEditCancel(new EventHandler&lt;TreeView.EditEvent&lt;String&gt;&gt;() {
                  @Override
                  public void handle(TreeView.EditEvent&lt;String&gt; t) {
                      System.out.println("setOnEditCancel");
                  }
              });
  </code></pre>
  
  <p>This line just  change all the TreeItems to TextField when trying to modify : 
  <code>syTree.setCellFactory(TextFieldTreeCell.forTreeView());</code>
  How to do it for a specific TreeItem ?
  Any help please ?</p>