Imaging e.g. 2 RadioButtons which share one ToggleGroup. Using
ToggleGroup.getToggles()
one can access all Toggles of the ToggleGroup. But is there any reference from a Toggle to the RadioButton that is linked to?
Imaging e.g. 2 RadioButtons which share one ToggleGroup. Using
ToggleGroup.getToggles()
one can access all Toggles of the ToggleGroup. But is there any reference from a Toggle to the RadioButton that is linked to?
If I understood the question correctly you're looking for:
Unfortunatly, the ToggleGroup isn't "generified" yet, so you need the cast.
Or in other words: RadioButton is a (implements) Toggle, there isn't any reference.