javauis/eswt_qt/eswtuitestutils/javasrc/com/nokia/mj/impl/uitestutils/KeyFactory.java
changeset 35 85266cc22c7f
equal deleted inserted replaced
26:dc7c549001d5 35:85266cc22c7f
       
     1 package com.nokia.mj.impl.uitestutils;
       
     2 
       
     3 public class KeyFactory
       
     4 {
       
     5 
       
     6     public static Key RIGHT_ARROW = new Key(Key.RightArrow);
       
     7     public static Key LEFT_ARROW = new Key(Key.LeftArrow);
       
     8     public static Key UP_ARROW = new Key(Key.UpArrow);
       
     9     public static Key DOWN_ARROW = new Key(Key.DownArrow);
       
    10     public static Key LEFTUP_ARROW = new Key(Key.EStdKeyDevice10);
       
    11     public static Key RIGHTUP_ARROW = new Key(Key.EStdKeyDevice11);
       
    12     public static Key RIGHTDOWN_ARROW = new Key(Key.EStdKeyDevice12);
       
    13     public static Key LEFTDOWN_ARROW = new Key(Key.EStdKeyDevice13);
       
    14     
       
    15     public static Key SELECT_KEY = new Key(Key.Select);
       
    16     public static Key SK1 = new Key(Key.CBA1);
       
    17     public static Key SK2 = new Key(Key.CBA2);
       
    18 
       
    19     public static Key KEYPAD_0 = new Key(Key.EStdKeyNkp0);
       
    20     public static Key KEYPAD_1 = new Key(Key.EStdKeyNkp1);
       
    21     public static Key KEYPAD_2 = new Key(Key.EStdKeyNkp2);
       
    22     public static Key KEYPAD_3 = new Key(Key.EStdKeyNkp3);
       
    23     public static Key KEYPAD_4 = new Key(Key.EStdKeyNkp4);
       
    24     public static Key KEYPAD_5 = new Key(Key.EStdKeyNkp5);
       
    25     public static Key KEYPAD_6 = new Key(Key.EStdKeyNkp6);
       
    26     public static Key KEYPAD_7 = new Key(Key.EStdKeyNkp7);
       
    27     public static Key KEYPAD_8 = new Key(Key.EStdKeyNkp8);
       
    28     public static Key KEYPAD_9 = new Key(Key.EStdKeyNkp9);
       
    29 
       
    30     public static Key F1 = new Key(Key.EKeyF1);
       
    31     public static Key F2 = new Key(Key.EKeyF2);
       
    32     public static Key F3 = new Key(Key.EKeyF3);
       
    33     public static Key F4 = new Key(Key.EKeyF4);
       
    34     public static Key F5 = new Key(Key.EKeyF5);
       
    35     public static Key F6 = new Key(Key.EKeyF6);
       
    36     public static Key F7 = new Key(Key.EKeyF7);
       
    37     public static Key F8 = new Key(Key.EKeyF8);
       
    38     public static Key F9 = new Key(Key.EKeyF9);
       
    39     public static Key F10 = new Key(Key.EKeyF10);
       
    40     public static Key F11 = new Key(Key.EKeyF11);
       
    41     public static Key F12 = new Key(Key.EKeyF12);
       
    42     public static Key F13 = new Key(Key.EKeyF13);
       
    43     public static Key F14 = new Key(Key.EKeyF14);
       
    44     public static Key F15 = new Key(Key.EKeyF15);
       
    45 
       
    46     public static Key BACKSPACE = new Key(Key.Backspace);
       
    47     public static Key ENTER = new Key(Key.EKeyEnter);
       
    48     public static Key ESCAPE = new Key(Key.EKeyEscape);
       
    49     public static Key TAB = new Key(Key.EKeyTab);
       
    50     public static Key CTRL_RIGHT = new Key(Key.EStdKeyRightCtrl);
       
    51     public static Key CTRL_LEFT = new Key(Key.EStdKeyLeftCtrl);
       
    52     public static Key SHIFT_RIGHT = new Key(Key.EStdKeyRightShift);
       
    53     public static Key SHIFT_LEFT = new Key(Key.EStdKeyLeftShift);
       
    54     public static Key SPACE = new Key(Key.EStdKeySpace);
       
    55     public static Key DEL = new Key(Key.EKeyDelete);
       
    56 
       
    57     public static Key STAR = new Key('*');
       
    58     public static Key DIVIDE = new Key(Key.EStdKeyNkpForwardSlash);
       
    59     public static Key ADD = new Key(Key.EStdKeyNkpPlus);
       
    60     public static Key SUBTRACT = new Key(Key.EStdKeyNkpMinus);
       
    61     public static Key HASH = new Key('#');
       
    62     public static Key CLEAR = new Key(Key.EStdKeyBackspace);
       
    63     public static Key EDIT = new Key(Key.EStdKeyRightShift);
       
    64     public static Key SEND = new Key(Key.EStdKeyYes);
       
    65     public static Key END = new Key(Key.EStdKeyNo);
       
    66     public static Key APPLICATIONS = new Key(Key.EStdKeyApplication0);
       
    67     public static Key VOICE = new Key(Key.EStdKeyDevice6);
       
    68     public static Key SOFTKEY_1 = new Key(Key.EStdKeyDevice0);
       
    69     public static Key SOFTKEY_2 = new Key(Key.EStdKeyDevice1);
       
    70 
       
    71     public static Key key(int keyCode)
       
    72     {
       
    73         return new Key(keyCode);
       
    74     }
       
    75 }