Ignore:
Timestamp:
06/25/13 15:28:22 (11 years ago)
Author:
pharms
Message:
  • added support for further HTML tags and respective events
Location:
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html
Files:
1 added
1 edited

Legend:

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

    r1219 r1223  
    2626import de.ugoe.cs.autoquest.eventcore.gui.Scroll; 
    2727import de.ugoe.cs.autoquest.eventcore.gui.TextInput; 
     28import de.ugoe.cs.autoquest.eventcore.gui.ValueSelection; 
     29import de.ugoe.cs.autoquest.eventcore.guimodel.ICheckBox; 
    2830import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement; 
     31import de.ugoe.cs.autoquest.eventcore.guimodel.IRadioButton; 
    2932import de.ugoe.cs.autoquest.eventcore.guimodel.ITextArea; 
    3033import de.ugoe.cs.autoquest.eventcore.guimodel.ITextField; 
     
    98101                result = new TextInput(value, null); 
    99102            } 
     103            else if ((guiElement instanceof IRadioButton) || (guiElement instanceof ICheckBox)) { 
     104                result = new ValueSelection<String>(value); 
     105            } 
    100106            else { 
    101107                throw new IllegalArgumentException("can not handle onchange events on GUI " + 
     
    108114        else if ("onunload".equals(eventName) || "onbeforeunload".equals(eventName) || 
    109115                 "onpagehide".equals(eventName) || "onpageshow".equals(eventName) || 
    110                  "onsubmit".equals(eventName) || "onselect".equals(eventName)) 
     116                 "onsubmit".equals(eventName) || "onselect".equals(eventName) || 
     117                 "onreset".equals(eventName)) 
    111118        { 
    112119            Console.traceln(Level.FINE, "Ignored event name \"" + eventName + "\""); 
Note: See TracChangeset for help on using the changeset viewer.