vendredi 30 octobre 2015

Java ObjectProperty dynamically get setter function

Say I have a SimpleObjectProperty, and has a setter function named set. Is there another way to get the setter function from the object than searching for a function with the right name?

I figured, since Oracle says a property called firstName should have a setter called setFirstName, perhaps there is a faster and more convenient way of finding it? I would prefer calling object.setValue to call the setter, but that would require overriding of the SimpleObjectProperty class I guess.





Aucun commentaire:

Enregistrer un commentaire