< prev index next >

SWT/JemmySWT/src/org/jemmy/swt/ListWrap.java

Print this page




  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 package org.jemmy.swt;
  26 
  27 import java.util.Arrays;
  28 import org.eclipse.swt.widgets.List;
  29 import org.jemmy.Point;
  30 import org.jemmy.action.GetAction;
  31 import org.jemmy.control.ControlType;
  32 import org.jemmy.env.Environment;
  33 import org.jemmy.input.KeyboardSelectable;
  34 import org.jemmy.input.KeyboardSelector;
  35 import org.jemmy.interfaces.Focusable;
  36 import org.jemmy.interfaces.Selector;
  37 
  38 /**
  39  *
  40  * @author shura
  41  */
  42 @ControlType(List.class)
  43 public class ListWrap<T extends List> extends ControlWrap<T> implements KeyboardSelectable<String>, Focusable {
  44 
  45     private KeyboardSelector<String> selector = null;
  46 
  47     public ListWrap(Environment env, T node) {
  48         super(env, node);
  49     }
  50 
  51     public java.util.List<String> getStates() {
  52         return new GetAction<java.util.List<String>>() {
  53 
  54             @Override




  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 package org.jemmy.swt;
  26 
  27 import java.util.Arrays;
  28 import org.eclipse.swt.widgets.List;
  29 import org.jemmy.Point;
  30 import org.jemmy.action.GetAction;
  31 import org.jemmy.control.ControlType;
  32 import org.jemmy.env.Environment;
  33 import org.jemmy.swt.input.KeyboardSelectable;
  34 import org.jemmy.swt.input.KeyboardSelector;
  35 import org.jemmy.interfaces.Focusable;
  36 import org.jemmy.interfaces.Selector;
  37 
  38 /**
  39  *
  40  * @author shura
  41  */
  42 @ControlType(List.class)
  43 public class ListWrap<T extends List> extends ControlWrap<T> implements KeyboardSelectable<String>, Focusable {
  44 
  45     private KeyboardSelector<String> selector = null;
  46 
  47     public ListWrap(Environment env, T node) {
  48         super(env, node);
  49     }
  50 
  51     public java.util.List<String> getStates() {
  52         return new GetAction<java.util.List<String>>() {
  53 
  54             @Override


< prev index next >