1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class span extends MultiPartElement implements Printable, MouseEvents, KeyEvents 71 { 72 75 { 76 setElementType("span"); 77 setCase(LOWERCASE); 78 setAttributeQuote(true); 79 } 80 81 85 public span() 86 { 87 } 88 89 95 public span(String value) 96 { 97 addElement(value); 98 } 99 100 104 public Element setLang(String lang) 105 { 106 addAttribute("lang",lang); 107 addAttribute("xml:lang",lang); 108 return this; 109 } 110 111 116 public span addElement(String hashcode,Element element) 117 { 118 addElementToRegistry(hashcode,element); 119 return(this); 120 } 121 122 127 public span addElement(String hashcode,String element) 128 { 129 addElementToRegistry(hashcode,element); 130 return(this); 131 } 132 133 137 public span addElement(Element element) 138 { 139 addElementToRegistry(element); 140 return(this); 141 } 142 146 public span addElement(String element) 147 { 148 addElementToRegistry(element); 149 return(this); 150 } 151 155 public span removeElement(String hashcode) 156 { 157 removeElementFromRegistry(hashcode); 158 return(this); 159 } 160 161 167 public void setOnClick(String script) 168 { 169 addAttribute ( "onclick", script ); 170 } 171 177 public void setOnDblClick(String script) 178 { 179 addAttribute ( "ondblclick", script ); 180 } 181 187 public void setOnMouseDown(String script) 188 { 189 addAttribute ( "onmousedown", script ); 190 } 191 197 public void setOnMouseUp(String script) 198 { 199 addAttribute ( "onmouseup", script ); 200 } 201 207 public void setOnMouseOver(String script) 208 { 209 addAttribute ( "onmouseover", script ); 210 } 211 217 public void setOnMouseMove(String script) 218 { 219 addAttribute ( "onmousemove", script ); 220 } 221 227 public void setOnMouseOut(String script) 228 { 229 addAttribute ( "onmouseout", script ); 230 } 231 232 238 public void setOnKeyPress(String script) 239 { 240 addAttribute ( "onkeypress", script ); 241 } 242 243 249 public void setOnKeyDown(String script) 250 { 251 addAttribute ( "onkeydown", script ); 252 } 253 254 260 public void setOnKeyUp(String script) 261 { 262 addAttribute ( "onkeyup", script ); 263 } 264 } 265 | Popular Tags |