private void markNodeAsValid(Node node) { TreeItem<Node> validItem = findItem(node); if (validItem != null && validItem.getGraphic() != null) { validItem.getGraphic().setVisible(false); } }
private void setupGraphic() { TreeItem<DbTreeValue> treeItem = getTreeItem(); if (treeItem != null && treeItem.getGraphic() != null) { setGraphic(treeItem.getGraphic()); } else { setGraphic(null); } }