View Javadoc

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