Ignore:
Timestamp:
07/26/13 09:20:36 (11 years ago)
Author:
pharms
Message:
  • added some Java Docs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/eventcore/HTMLEventTypeFactory.java

    r1250 r1276  
    3939/** 
    4040 * <p> 
    41  * TODO comment 
     41 * convenience class to instantiate the correct event type based on an event name, event parameters, 
     42 * and the target GUI element. 
    4243 * </p> 
    4344 *  
     
    4748public class HTMLEventTypeFactory { 
    4849     
    49     /**  */ 
     50    /** 
     51     * <p> 
     52     * single instance 
     53     * </p> 
     54     */ 
    5055    private static HTMLEventTypeFactory instance = new HTMLEventTypeFactory(); 
    5156 
    5257    /** 
    5358     * <p> 
    54      * TODO: comment 
     59     * private constructor to implement correct singleton 
    5560     * </p> 
    56      * 
    5761     */ 
    5862    private HTMLEventTypeFactory() {} 
     
    6064    /** 
    6165     * <p> 
    62      * TODO: comment 
     66     * singleton retrieval 
    6367     * </p> 
    64      * 
    65      * @return 
    6668     */ 
    6769    public static HTMLEventTypeFactory getInstance() { 
     
    7173    /** 
    7274     * <p> 
    73      * TODO: comment 
     75     * returns the event type for the given event name, the parameters as well as the target GUI 
     76     * element 
    7477     * </p> 
    7578     * 
    76      * @param eventName 
    77      * @param eventParameters 
    78      * @return 
     79     * @param eventName       the name of the event, e.g., onscroll 
     80     * @param eventParameters the parameters of the event, e.g., scroll coordinates 
     81     * @param guiElement      the target GUI element of the event (required for some event type 
     82     *                        differentiation 
     83     *                         
     84     * @return the event type matching the proviced parameters 
     85     *  
     86     * @throws IllegalArgumentException if the provided parameters in their combination do not 
     87     *                                  correctly specify an event type  
    7988     */ 
    80     public IEventType getEventType(String eventName, Map<String, String> eventParameters,  
    81                                    IGUIElement guiElement) { 
     89    public IEventType getEventType(String              eventName, 
     90                                   Map<String, String> eventParameters,  
     91                                   IGUIElement         guiElement) 
     92    { 
    8293        IInteraction result = null; 
    8394 
     
    142153    /** 
    143154     * <p> 
    144      * TODO: comment 
     155     * convenience method to retrieve coordinates from the event parameters. 
    145156     * </p> 
    146      *  
    147      * @param eventName 
    148      * @param eventParameters 
    149      * @return 
    150157     */ 
    151158    private int[] getCoordinateParameter(String              xParamName, 
Note: See TracChangeset for help on using the changeset viewer.