Binds a group of buttons in a panel to an attribute in a ViewObject such that on selection of a given button, this binding works like a LOV binding or used to display an enumerated list for update. When used like an LOV, it will update selected attributes in the target ViewObject's current row with values from the row that is represented by the selected button.

When the binding is used to display an enumerated list of values in a set of buttons grouped together, it will update a value in one of the attributes of the current row in a target ViewObject. This behaves like the attribute binding in a list control with a static list of values.

JUButtonGroupBinding(javax.swing.AbstractButton[] buttons, JUIteratorBinding iterBinding, java.lang.String attrName, java.lang.Object[] valueList)
Use this constructor to setup an enumerated list of values and bind them to an attribute in a ViewObject (like a static list of values bound to an attribute in a ListBox or a ComboBox).

JUButtonGroupBinding(JUButtonGroupControlInterface control, DCIteratorBinding iterBinding, java.lang.String[] attrNames, java.lang.Object[] valueList)
Use this constructor to setup an enumerated list of values and bind them to an attribute in a ViewObject (like a static list of values bound to an attribute in a ListBox or a ComboBox).

createEnumerationBinding(JUFormBinding formBinding, javax.swing.AbstractButton[] buttons, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, java.lang.String attrName, java.lang.Object[] valueList)
Given a list of buttons (that display the values for the given valueList) bind to an attribute of a ViewObject, such that on selection of one of the buttons in the list, the value of the selected attribute in the current row of the ViewObject is updated with the equivalent value in the valueList array.

JUButtonGroupBinding

Use this constructor to setup an enumerated list of values and bind them to an attribute in a ViewObject (like a static list of values bound to an attribute in a ListBox or a ComboBox). For example, say an attriute may contain only two values M/F. RadioButtons grouped together could be used to display Male/Female in the UI, while upon selection of either, the corresponding attribute value is updated with M/F. This kind of usage can be bound via this constructor.

JUButtonGroupBinding

Use this constructor to setup an enumerated list of values and bind them to an attribute in a ViewObject (like a static list of values bound to an attribute in a ListBox or a ComboBox). For example, say an attriute may contain only two values M/F. RadioButtons grouped together could be used to display Male/Female in the UI, while upon selection of either, the corresponding attribute value is updated with M/F. This kind of usage can be bound via this constructor.

Use this constructor to bind a set of group buttons (created by the given control in createButtons method) based on values as returned from the given LOV viewobject. This constructor creates an LOV binding.

Given a list of buttons (that display the values for the given valueList) bind to an attribute of a ViewObject, such that on selection of one of the buttons in the list, the value of the selected attribute in the current row of the ViewObject is updated with the equivalent value in the valueList array.

setupListItems

protected void setupListItems(boolean clean,
boolean keepSelection)

Sets up the list of values that are displayed by the associated control. This method creates the list of buttons by calling the control's createButtons() method passing it the list of Strings to be used for display.