Java Code Examples for javafx.scene.control.TreeCell#getGraphic()
The following examples show how to use
javafx.scene.control.TreeCell#getGraphic() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JavaFXTreeCellElement.java From marathonv5 with Apache License 2.0 | 5 votes |
@Override public String _getValue() { TreeCell<?> cell = (TreeCell<?>) getComponent(); Node graphic = cell.getGraphic(); JavaFXElement cellElement = (JavaFXElement) JavaFXElementFactory.createElement(graphic, driver, window); if (graphic != null && cellElement != null) { return cellElement._getValue(); } return super._getValue(); }
Example 2
Source File: JavaFXTreeViewNodeElement.java From marathonv5 with Apache License 2.0 | 5 votes |
@SuppressWarnings({ "rawtypes", "unchecked" }) private Node getEditor() { TreeCell cell = (TreeCell) getPseudoComponent(); TreeView treeView = (TreeView) getComponent(); treeView.edit(cell.getTreeItem()); Node cellComponent = cell.getGraphic(); cellComponent.getProperties().put("marathon.celleditor", true); cellComponent.getProperties().put("marathon.cell", cell); return cellComponent; }