How can I make custom event and custom property with access to it from SceneBuilder/FXML? Should be available like this
this source gives the answer but only partially here
I need something like:
MyFragment.fxml
<SplitPane ......>
<fx:script>
function myFunction()
{
if(MyCustomControl.state){
id0.setText('1111111')
} else {
id0.setText('2222222')
}
}
</fx:script>
//How create this property?
<Label fx:id="id0" /> // |
// V
<MyCustomControl onMyCustomEvent="myFunction()"/>
</SplitPane>