IBM Rational Functional Tester
Version 8.1.1000
IBM Rational Functional Tester Proxy SDK Reference

Project Version 2.3

com.rational.test.ft.domain
Interface IRadioButtonProxy

All Known Implementing Classes:
AbstractButtonProxy, CheckboxProxy, JCheckBoxProxy, JMenuItemProxy, JMenuProxy, JSeparatorProxy

public interface IRadioButtonProxy

Radiobutton proxies that desire default data driving from the mappable parent proxy need to implement this interface. If this interface is implemented and getRole() method returns TestObjectRole.ROLE_RADIO_BUTTON then the proxy will be data driven from the mappable parent automatically. Note that no methods from this interface will be called if the role is not TestObjectRole.ROLE_RADIO_BUTTON.

Since:
RFT2.0

Method Summary
 com.rational.test.ft.script.Property[] getDataDrivenRecognitionProperties(java.util.Hashtable radiobuttonGroups)
          Return a limited set of properties that can be used to identify all radiobuttons in the group.
 java.lang.Object getRadioButtonGroup()
          Return access to the radio button group object.
 java.lang.String getVariableDataDrivenRecognitionProperty(com.rational.test.ft.script.Property[] properties)
          Only one recognition property will be data driven by default, this method specifies that property.
 boolean isRadioSelected()
          Specifies if the radiobutton is currently selected.
 

Method Detail

getRadioButtonGroup

java.lang.Object getRadioButtonGroup()
Return access to the radio button group object. The object returned is used to correlate the radio button to other radio buttons relative to the same parent in the same group. If access to the group is not available then null should be returned and all radiobuttons in the parent will be treated as if they come from the same group.

Since:
RFT2.0

getDataDrivenRecognitionProperties

com.rational.test.ft.script.Property[] getDataDrivenRecognitionProperties(java.util.Hashtable radiobuttonGroups)
Return a limited set of properties that can be used to identify all radiobuttons in the group. The values are specific to the one proxy but will be applied to all proxies when attempting to find radiobuttons in this group during playback. For instance returning the "text" property is only interesting if all properties in the group have a non-null, unique text property. Otherwise, something more resilient to a parent relative find should be used.

Parameters:
radiobuttonGroups - The set of radiobutton groups available from the same parent. The key to the map is the group object and the value is a java.util.Vector of the radiobuttons in the group.
Since:
RFT2.0

getVariableDataDrivenRecognitionProperty

java.lang.String getVariableDataDrivenRecognitionProperty(com.rational.test.ft.script.Property[] properties)
Only one recognition property will be data driven by default, this method specifies that property. The returned property must be in the set of properties returned by #getDataDrivenRecognitionProperties(). Nothing will be data driven if this property name is not in that set.

Parameters:
properties - The properties returned by getDataDrivenRecognitionProperties(Hashtable).
Since:
RFT2.0

isRadioSelected

boolean isRadioSelected()
Specifies if the radiobutton is currently selected. The selected value is used to as the initial value in the datapool when data driving is complete.

Since:
RFT2.0