I noticed the setUserData
method that appears on almost all JavaFX objects and I was wondering if there are specific uses for this that are considered better coding practice than others. (Or if there are at least uses that would be considered improper.)
On the Java API the description is:
Convenience method for setting a single Object property that can be retrieved at a later date.
Is this method really just for convenient attaching of whatever your heart desires to JavaFX objects? I could see its usefulness in tagging/marking objects, but does it have any other standard uses?