How do I make a Component selectable with a RadioButton?

Hi, I have a use case where the user needs to select items with checkboxes and then has a choice of two radio buttons. Now the plan was to use the radio buttons to select a component. One RadioButton would select a ComboBox, the other a TextField. However, I can’t make this work nor did I find any info when googling.

Am I missing something? If I use setItems(), I get the object reference, not the object itself.

Thank you!