1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class ins extends MultiPartElement implements Printable, MouseEvents, KeyEvents 71 { 72 75 { 76 setElementType("ins"); 77 setCase(LOWERCASE); 78 setAttributeQuote(true); 79 } 80 81 84 public ins() 85 { 86 } 87 88 92 public ins setCite(String url) 93 { 94 addAttribute("cite",url); 95 return(this); 96 } 97 98 102 public ins setDateTime(String datetime) 103 { 104 addAttribute("datetime",datetime); 105 return(this); 106 } 107 108 112 public Element setLang(String lang) 113 { 114 addAttribute("lang",lang); 115 addAttribute("xml:lang",lang); 116 return this; 117 } 118 119 124 public ins addElement(String hashcode,Element element) 125 { 126 addElementToRegistry(hashcode,element); 127 return(this); 128 } 129 130 135 public ins addElement(String hashcode,String element) 136 { 137 addElementToRegistry(hashcode,element); 138 return(this); 139 } 140 141 145 public ins addElement(Element element) 146 { 147 addElementToRegistry(element); 148 return(this); 149 } 150 151 155 public ins addElement(String element) 156 { 157 addElementToRegistry(element); 158 return(this); 159 } 160 164 public ins removeElement(String hashcode) 165 { 166 removeElementFromRegistry(hashcode); 167 return(this); 168 } 169 170 176 public void setOnClick(String script) 177 { 178 addAttribute ( "onclick", script ); 179 } 180 186 public void setOnDblClick(String script) 187 { 188 addAttribute ( "ondblclick", script ); 189 } 190 196 public void setOnMouseDown(String script) 197 { 198 addAttribute ( "onmousedown", script ); 199 } 200 206 public void setOnMouseUp(String script) 207 { 208 addAttribute ( "onmouseup", script ); 209 } 210 216 public void setOnMouseOver(String script) 217 { 218 addAttribute ( "onmouseover", script ); 219 } 220 226 public void setOnMouseMove(String script) 227 { 228 addAttribute ( "onmousemove", script ); 229 } 230 236 public void setOnMouseOut(String script) 237 { 238 addAttribute ( "onmouseout", script ); 239 } 240 241 247 public void setOnKeyPress(String script) 248 { 249 addAttribute ( "onkeypress", script ); 250 } 251 252 258 public void setOnKeyDown(String script) 259 { 260 addAttribute ( "onkeydown", script ); 261 } 262 263 269 public void setOnKeyUp(String script) 270 { 271 addAttribute ( "onkeyup", script ); 272 } 273 } 274 | Popular Tags |