aspose file tools*
The moose likes JavaFX and the fly likes Custom Components - Passing parameters and calling functions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JavaFX
Bookmark "Custom Components - Passing parameters and calling functions " Watch "Custom Components - Passing parameters and calling functions " New topic
Author

Custom Components - Passing parameters and calling functions

Gianfranco Vecchio
Greenhorn

Joined: May 11, 2013
Posts: 1
Hello everybody,
I followed this tutorial

http://docs.oracle.com/javafx/2/fxml_get_started/custom_control.htm

to create a custom component in my JavaFx 2 application. This tutorial shows a simple solution with only a string as variable parameter to pass to the custom components.
My question is: How can i pass variable parameters from the main Controller to the controller of custom components and vice-versa how to call a function in the main controller from the controller of custom component.

Thanks in advance.

Gianfranco
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Custom Components - Passing parameters and calling functions