The following APIs are used to identify and automate toggle controls:
•JavaToggleButton
•JavaCheckBox
•JavaRadioButton
The JavaToggleButton object is used to identify or automate a javax.swing.JToggleButton component or its subclasses.
|
The JavaCheckBox object is used to identify or automate a javax.swing.JCheckBox component or its subclasses.
Changed Event When the state of the control changes, the following event can be fired:
The value of the new state is extracted from the EventArgs. For example:
|
The JavaRadioButton object is used to identify or automate a javax.swing.JRadioButton component or its subclasses.
|
Changed Event
When the state of the control changes, the following event can be fired:
void MyRadioButton_Changed(object sender, EventArgs e) |
Parameter |
Description |
---|---|
sender |
The element that triggered the event (i.e., the specific radio button that was involved). |
e |
Requirements for the event. |
The value of the new state is extracted from the EventArgs. For example:
{ var radioArgs = e as BoolEventArgs; bool value = radioArgs.Value; } |