如何绑定TreeTableView?这给了我一个错误:
tblTreeView.rootProperty().bind(model.transactionProperty());where transactionProperty()
public SimpleListProperty<Document> transactionsProperty() {
if(transactions == null){
transactions = new SimpleListProperty<>();
}
return transactions;
}发布于 2015-07-30 22:43:52
TreeTableView<Document> treeTable = new TreeTableView<>();
ObjectProperty<TreeItem<Document>> rootProperty = treeTable.rootProperty();它可以绑定到ObservableValue<TreeItem<S>>
ObjectProperty<TreeItem<Document>> modelProperty = new SimpleObjectProperty<>();
rootProperty.bind(modelProperty);
modelProperty.set(myDocument); // will update the bound root propertyhttps://stackoverflow.com/questions/31725129
复制相似问题