Changeset 1276 for trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/eventcore
- Timestamp:
- 07/26/13 09:20:36 (11 years ago)
- 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 39 39 /** 40 40 * <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. 42 43 * </p> 43 44 * … … 47 48 public class HTMLEventTypeFactory { 48 49 49 /** */ 50 /** 51 * <p> 52 * single instance 53 * </p> 54 */ 50 55 private static HTMLEventTypeFactory instance = new HTMLEventTypeFactory(); 51 56 52 57 /** 53 58 * <p> 54 * TODO: comment59 * private constructor to implement correct singleton 55 60 * </p> 56 *57 61 */ 58 62 private HTMLEventTypeFactory() {} … … 60 64 /** 61 65 * <p> 62 * TODO: comment66 * singleton retrieval 63 67 * </p> 64 *65 * @return66 68 */ 67 69 public static HTMLEventTypeFactory getInstance() { … … 71 73 /** 72 74 * <p> 73 * TODO: comment 75 * returns the event type for the given event name, the parameters as well as the target GUI 76 * element 74 77 * </p> 75 78 * 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 79 88 */ 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 { 82 93 IInteraction result = null; 83 94 … … 142 153 /** 143 154 * <p> 144 * TODO: comment155 * convenience method to retrieve coordinates from the event parameters. 145 156 * </p> 146 *147 * @param eventName148 * @param eventParameters149 * @return150 157 */ 151 158 private int[] getCoordinateParameter(String xParamName,
Note: See TracChangeset
for help on using the changeset viewer.