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 WebPopupList extends WebControl {
13  
14      /**
15       * @param parent .
16       * @param locator .
17       */
18      public WebPopupList(final Frame parent, final String locator) {
19          super(parent, locator);
20      }
21  
22      /**
23       * @param parent .
24       * @param parentElement .
25       * @param locator .
26       */
27      public WebPopupList(final Frame parent, final String parentElement,
28              final String locator) {
29          super(parent, parentElement, locator);
30      }
31  
32      /**
33       * .
34       * @throws RemoteException .
35       */
36      public final void deselectAll() throws RemoteException {
37          this.client().core().deselectAll(getParentElement(), getLocator());
38      }
39  
40      /**
41       * .
42       * @param arg3 .
43       * @throws RemoteException .
44       */
45      public final void deselectByIndex(final int arg3) throws RemoteException {
46          this.client()
47              .core()
48              .deselectByIndex(getParentElement(), getLocator(), arg3);
49      }
50  
51      /**
52       * .
53       * @param arg3 .
54       * @throws RemoteException .
55       */
56      public final void deselectByValue(final String arg3)
57              throws RemoteException {
58          this.client()
59              .core()
60              .deselectByValue(getParentElement(), getLocator(), arg3);
61      }
62  
63      /**
64       * .
65       * @param arg3 .
66       * @throws RemoteException .
67       */
68      public final void deselectByVisibleText(final String arg3)
69              throws RemoteException {
70          this.client().core()
71                  .deselectByVisibleText(getParentElement(), getLocator(), arg3);
72      }
73  
74      /**
75       * .
76       * @return .
77       * @throws RemoteException .
78       */
79      public final String[] getAllOptions() throws RemoteException {
80          return this.client()
81                  .core()
82                  .getAllOptions(getParentElement(), getLocator());
83      }
84  
85      /**
86       * .
87       * @return .
88       * @throws RemoteException .
89       */
90      public final String[] getAllSelectedOptions() throws RemoteException {
91          return this.client().core()
92                  .getAllSelectedOptions(getParentElement(), getLocator());
93      }
94  
95      /**
96       * .
97       * @return .
98       * @throws RemoteException .
99       */
100     public final String getFirstSelectedOption() throws RemoteException {
101         return this.client().core()
102                 .getFirstSelectedOption(getParentElement(), getLocator());
103     }
104 
105     /**
106      * .
107      * @return .
108      * @throws RemoteException .
109      */
110     public final boolean isMulti() throws RemoteException {
111         return this.client()
112                 .core()
113                 .isMultiple(getParentElement(), getLocator());
114     }
115 
116     /**
117      * .
118      * @param arg3 .
119      * @throws RemoteException .
120      */
121     public final void selectByIndex(final int arg3) throws RemoteException {
122         this.client()
123             .core()
124             .selectByIndex(getParentElement(), getLocator(), arg3);
125     }
126 
127     /**
128      * .
129      * @param arg3 .
130      * @throws RemoteException .
131      */
132     public final void selectByValue(final String arg3) throws RemoteException {
133         this.client()
134             .core()
135             .selectByValue(
136                     getParentElement(),
137                     getLocator(),
138                     arg3);
139     }
140 
141     /**
142      * .
143      * @param arg3 .
144      * @throws RemoteException .
145      */
146     public final void selectByVisibleText(final String arg3)
147             throws RemoteException {
148         this.client()
149             .core()
150             .selectByVisibleText(
151                     getParentElement(),
152                     getLocator(),
153                     arg3);
154     }
155 }