Rich UI radioGroup

A Rich UI radioGroup widget (or, more simply, a radio group) displays a set of radio buttons, which are arranged horizontally. The group elicits a user click on any of the buttons. When a user clicks a button, if another button was previously selected, that button is cleared.

If you specify the onClick event for the radio group, a user's click invokes a function. The same function is invoked in response to a click of any button; typically, the function determines which button was clicked and then responds to the selection.

In Internet Explorer, your code cannot preselect a radio button before displaying the radio group.

Here is example code:
import egl.ui.rui.Event;
import com.ibm.egl.rui.widgets.RadioGroup;
import com.ibm.egl.rui.widgets.TextField;

Handler OneRadioButton Type RUIHandler
   { initialUI = [myTextField, myRadioGroup] }

   myTextField TextField { text = "Monday?" };

   myRadioGroup RadioGroup
   { groupName = "abc", options = ["Monday", "Tuesday"], onClick ::= myRadioHandler };

   Function myRadioHandler(e Event in)
      if (myRadioGroup.selected == "Tuesday")
        myTextField.text = "Tuesday!";
      else 
        myTextField.text = "Monday!";
      end
   end
end
The radioGroup widget supports these properties:

For information about other supported properties and functions, see "Widget properties and functions."

If you use this widget, you must use the following statement:
import com.ibm.egl.rui.widgets.RadioGroup;

Feedback