Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » OnAction method with parameters(Calling functions in fxml/fxgraph with parameters)
OnAction method with parameters [message #1733022] Mon, 23 May 2016 18:57 Go to next message
Matthew Montgomery is currently offline Matthew MontgomeryFriend
Messages: 5
Registered: May 2016
Junior Member
Good afternoon.
I've been working on a project in fxgraph and I've been using
onAction : controllermethod testFunction
in some of my nodes to call certain functions.

I wanted to try using the same function for multiple nodes by providing a different parameter in each (i.e. testFunction(1)).

Is fxgraph capable of having functions with parameters? So far providing an argument hasn't worked in fxgraph and I haven't found any solutions online yet.

Thanks.
Re: OnAction method with parameters [message #1733028 is a reply to message #1733022] Mon, 23 May 2016 19:54 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

No this is not possible because FXML does only support a receiver with:
* no arg
* 1 arg who is exactly the event


Tom

On 23.05.16 20:57, Matthew Montgomery wrote:
> Good afternoon.
> I've been working on a project in fxgraph and I've been using
> onAction : controllermethod testFunction
> in some of my nodes to call certain functions.
>
> I wanted to try using the same function for multiple nodes by providing
> a different parameter in each (i.e. testFunction(1)).
>
> Is fxgraph capable of having functions with parameters? So far providing
> an argument hasn't worked in fxgraph and I haven't found any solutions
> online yet.
>
> Thanks.
Previous Topic:What is the equivalent JavaFX addOn for MinMaxAddon?
Next Topic:[BUG] Parts disappear when dragged between stacks in a perspective
Goto Forum:
  


Current Time: Thu Oct 10 11:21:25 GMT 2024

Powered by FUDForum. Page generated in 0.03673 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top