< prev index next >

core/JemmyAWTInput/src/org/jemmy/input/AWTMap.java

Print this page

        

@@ -41,11 +41,11 @@
 import org.jemmy.interfaces.Mouse.MouseModifiers;
 
 
 /**
  * Converts
- * @author Alexander Kouznetsov <mrkam@mail.ru>
+ * @author mrkam
  */
 public class AWTMap {
 
     private static Map<Integer, KeyboardButton> int2key = new HashMap<Integer, KeyboardButton>();
     private static Map<Integer, Modifier> int2modifier = new HashMap<Integer, Modifier>();

@@ -127,11 +127,11 @@
         }
     }
 
     /**
      * TODO Provide javadoc
-     * @param button
+     * @param button todo document
      * @return One of InputEvent.VK_* constants
      * @see InputEvent
      */
     public int convert(KeyboardButton button) {
         try {

@@ -139,15 +139,10 @@
         } catch(Exception e) {
             throw new JemmyException("Unable to recognize key", e, button);
         }
     }
 
-    /**
-     * TODO Provide javadoc
-     * @param modifiers
-     * @return
-     */
     public int convert(Modifier... modifiers) {
         int result = 0;
         for (Modifier modifier : modifiers) {
             try {
                 result |= modifier2int.get(modifier);

@@ -156,41 +151,26 @@
             }
         }
         return result;
     }
 
-    /**
-     * TODO Provide javadoc
-     * @param button
-     * @return
-     */
     public int convert(MouseButton button) {
         try {
             return button2int.get(button);
         } catch (Exception e) {
             throw new JemmyException("Unable to recognize mouse button", e, button);
         }
     }
 
-    /**
-     * TODO Provide javadoc
-     * @param key
-     * @return
-     */
     public KeyboardButton convertKeyboardButton(int key) {
         KeyboardButton res = int2key.get(key);
         if (res == null) {
             throw new JemmyException("Unable to recognize key", key);
         }
         return res;
     }
 
-    /**
-     * TODO Provide javadoc
-     * @param modifiers
-     * @return
-     */
     public Modifier[] convertModifiers(int modifiers) {
         List<Modifier> result = new ArrayList<Modifier>();
         for (int key : int2modifier.keySet()) {
             if ((key & modifiers) != 0) {
                 Modifier res = int2modifier.get(key);

@@ -201,15 +181,10 @@
             }
         }
         return result.toArray(new Modifier[result.size()]);
     }
 
-    /**
-     * TODO Provide javadoc
-     * @param button
-     * @return
-     */
     public MouseButton convertMouseButton(int button) {
         MouseButton res = int2button.get(button);
         if (res == null) {
             throw new JemmyException("Unable to recognize mouse button", button);
         }
< prev index next >