1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class small extends MultiPartElement implements Printable, MouseEvents, KeyEvents 71 { 72 75 { 76 setElementType("small"); 77 setCase(LOWERCASE); 78 setAttributeQuote(true); 79 } 80 83 public small() 84 { 85 } 86 87 91 public small(Element element) 92 { 93 addElement(element); 94 } 95 96 100 public small(String element) 101 { 102 addElement(element); 103 } 104 105 109 public Element setLang(String lang) 110 { 111 addAttribute("lang",lang); 112 addAttribute("xml:lang",lang); 113 return this; 114 } 115 116 121 public small addElement(String hashcode,Element element) 122 { 123 addElementToRegistry(hashcode,element); 124 return(this); 125 } 126 127 132 public small addElement(String hashcode,String element) 133 { 134 addElementToRegistry(hashcode,element); 135 return(this); 136 } 137 138 142 public small addElement(Element element) 143 { 144 addElementToRegistry(element); 145 return(this); 146 } 147 148 152 public small addElement(String element) 153 { 154 addElementToRegistry(element); 155 return(this); 156 } 157 161 public small removeElement(String hashcode) 162 { 163 removeElementFromRegistry(hashcode); 164 return(this); 165 } 166 167 173 public void setOnClick(String script) 174 { 175 addAttribute ( "onclick", script ); 176 } 177 183 public void setOnDblClick(String script) 184 { 185 addAttribute ( "ondblclick", script ); 186 } 187 193 public void setOnMouseDown(String script) 194 { 195 addAttribute ( "onmousedown", script ); 196 } 197 203 public void setOnMouseUp(String script) 204 { 205 addAttribute ( "onmouseup", script ); 206 } 207 213 public void setOnMouseOver(String script) 214 { 215 addAttribute ( "onmouseover", script ); 216 } 217 223 public void setOnMouseMove(String script) 224 { 225 addAttribute ( "onmousemove", script ); 226 } 227 233 public void setOnMouseOut(String script) 234 { 235 addAttribute ( "onmouseout", script ); 236 } 237 238 244 public void setOnKeyPress(String script) 245 { 246 addAttribute ( "onkeypress", script ); 247 } 248 249 255 public void setOnKeyDown(String script) 256 { 257 addAttribute ( "onkeydown", script ); 258 } 259 260 266 public void setOnKeyUp(String script) 267 { 268 addAttribute ( "onkeyup", script ); 269 } 270 } 271 | Popular Tags |