1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class blockquote extends MultiPartElement implements Printable, MouseEvents, KeyEvents 71 { 72 75 { 76 setElementType("blockquote"); 77 setCase(LOWERCASE); 78 setAttributeQuote(true); 79 } 80 83 public blockquote() 84 { 85 } 86 87 91 public blockquote(Element element) 92 { 93 addElement(element); 94 } 95 96 100 public blockquote(String element) 101 { 102 addElement(element); 103 } 104 105 110 public blockquote(Element element, String cite) 111 { 112 addElement(element); 113 setCite(cite); 114 } 115 116 121 public blockquote(String element, String cite) 122 { 123 addElement(element); 124 setCite(cite); 125 } 126 127 132 public blockquote(Element element, Element cite) 133 { 134 addElement(element); 135 setCite(cite); 136 } 137 138 143 public blockquote(String element, Element cite) 144 { 145 addElement(element); 146 setCite(cite); 147 } 148 149 153 public blockquote setCite(String cite) 154 { 155 addAttribute("cite",cite); 156 return(this); 157 } 158 159 163 public blockquote setCite(Element cite) 164 { 165 addAttribute("cite",cite); 166 return(this); 167 } 168 169 173 public Element setLang(String lang) 174 { 175 addAttribute("lang",lang); 176 addAttribute("xml:lang",lang); 177 return this; 178 } 179 180 185 public blockquote addElement(String hashcode,Element element) 186 { 187 addElementToRegistry(hashcode,element); 188 return(this); 189 } 190 191 196 public blockquote addElement(String hashcode,String element) 197 { 198 addElementToRegistry(hashcode,element); 199 return(this); 200 } 201 202 206 public blockquote addElement(Element element) 207 { 208 addElementToRegistry(element); 209 return(this); 210 } 211 212 216 public blockquote addElement(String element) 217 { 218 addElementToRegistry(element); 219 return(this); 220 } 221 225 public blockquote removeElement(String hashcode) 226 { 227 removeElementFromRegistry(hashcode); 228 return(this); 229 } 230 231 237 public void setOnClick(String script) 238 { 239 addAttribute ( "onclick", script ); 240 } 241 247 public void setOnDblClick(String script) 248 { 249 addAttribute ( "ondblclick", script ); 250 } 251 257 public void setOnMouseDown(String script) 258 { 259 addAttribute ( "onmousedown", script ); 260 } 261 267 public void setOnMouseUp(String script) 268 { 269 addAttribute ( "onmouseup", script ); 270 } 271 277 public void setOnMouseOver(String script) 278 { 279 addAttribute ( "onmouseover", script ); 280 } 281 287 public void setOnMouseMove(String script) 288 { 289 addAttribute ( "onmousemove", script ); 290 } 291 297 public void setOnMouseOut(String script) 298 { 299 addAttribute ( "onmouseout", script ); 300 } 301 302 308 public void setOnKeyPress(String script) 309 { 310 addAttribute ( "onkeypress", script ); 311 } 312 313 319 public void setOnKeyDown(String script) 320 { 321 addAttribute ( "onkeydown", script ); 322 } 323 324 330 public void setOnKeyUp(String script) 331 { 332 addAttribute ( "onkeyup", script ); 333 } 334 } 335 | Popular Tags |