Gary’s design is very simple; we just need to add a setter method for all of the HTML pass-through tag attributes The UML for the tag class is on the right, with all the methods we’ll need to add.
Here’s the code to make this work:
SelectTagHandler |
---|
+setOptionsList(List) |
+setId(String) |
+setClass(String) |
+setStyle(String) |
+setTitle(String) |
+setLang(String) |
+setDir(String) |
+setOnclick(String) |
+setOndblclick(String) |
+setOnmouseup(String) |
+setOnmousedown(String) |
+setOnmouseover(String) |
+setOnmousemove(String) |
+setOnmouseout(String) |
+setOnkeypress(String) |
+setOnkeydown(String) |
+setOnkeyup(String) |
+setName(String) |
+setSize(String) |
+setMultiple(String) |
+setDisabled(String) |
+setTabindex(String) |
+setOnfocus(String) |
+setOnblur(String) |
+setOnchange(String) |
+doTag() |