private void markNodeAsValid(Node node) {
    TreeItem<Node> validItem = findItem(node);

    if (validItem != null && validItem.getGraphic() != null) {
      validItem.getGraphic().setVisible(false);
    }
  }
Ejemplo n.º 2
0
 private void setupGraphic() {
   TreeItem<DbTreeValue> treeItem = getTreeItem();
   if (treeItem != null && treeItem.getGraphic() != null) {
     setGraphic(treeItem.getGraphic());
   } else {
     setGraphic(null);
   }
 }