Using the JClient RadioButtonGroupPanel Control

The JURadioButtonGroupPanel control can be bound to an attribute group of a business service data collection through the ADF navigate binding. When the user changes the radio button selection, any controls in the containing panel that are also bound to the same data collection through its attributes will display from the selected data object.

To bind a radio button group to navigate data collections:

  1. In the JClient project, open the Java Visual Editor on the desired data panel or form.

  2. From the View menu choose Data Control Palette to open the palette.

  3. In the top portion of the palette, select the data collection you want to bind to the radio button group control.

  4. From the Drop As list select Radio Button Group.

  5. From the top portion of the palette, drag the selected data collection into the desired position in the open form or panel.

  6. JDeveloper adds code to the class file to bind the JURadioButtonGroupPanel to the collection:

    jURadioButtonGroupPanel1.setModel((JUButtonGroupBinding)panelBinding.bindUIControl("MyDataCollection", jURadioButtonGroupPanel1));

  7. In the binding editor for a Navigation binding, choose the display attributes you want to use with the radio button panel .

To customize the layout of the radio button panel:

The default layout for the radio buttons is by row, but you can change the layout through the rowCount and columnCount properties of the panel.

For example, to display the radio button selections in columns:


About JClient-Specific Controls

 

Copyright © 1997, 2004, Oracle. All rights reserved.