Map an Enum in a ButtonGroup

Map an Enum in a ButtonGroup

If an enum is mapped to a ButtonGroup, it could automatically map the buttons?

If I have an enum with Up, Down, Left, Right and I need to insert a ButtonGroup with four buttons, each button to map with  each value, I think should be possible map the enum to the buttongroup and automatically each button takes the different value of the enum.