1
2
3
4 package org.sirius.client.web.classes;
5
6 import java.rmi.RemoteException;
7
8
9
10
11
12 public class WebRadioButton extends WebButton {
13
14
15
16
17
18 public WebRadioButton(final Frame parentValue, final String locatorValue) {
19 super(parentValue, locatorValue);
20
21 }
22
23
24
25
26
27
28 public WebRadioButton(final Frame parent, final String parentElement,
29 final String locator) {
30 super(parent, parentElement, locator);
31
32 }
33
34
35
36
37
38 public final void check() throws Exception {
39 if (!isChecked()) {
40 click();
41 }
42 }
43
44
45
46
47
48
49 public final boolean isChecked() throws RemoteException {
50 return this.client()
51 .core()
52 .isSelected(getParentElement(), getLocator());
53 }
54 }