1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 69 public class BlockQuote extends MultiPartElement implements Printable, MouseEvents, KeyEvents 70 { 71 74 { 75 setElementType("blockquote"); 76 } 77 80 public BlockQuote() 81 { 82 } 83 84 88 public BlockQuote(Element element) 89 { 90 addElement(element); 91 } 92 93 97 public BlockQuote(String element) 98 { 99 addElement(element); 100 } 101 102 107 public BlockQuote(Element element, String cite) 108 { 109 addElement(element); 110 setCite(cite); 111 } 112 113 118 public BlockQuote(String element, String cite) 119 { 120 addElement(element); 121 setCite(cite); 122 } 123 124 129 public BlockQuote(Element element, Element cite) 130 { 131 addElement(element); 132 setCite(cite); 133 } 134 135 140 public BlockQuote(String element, Element cite) 141 { 142 addElement(element); 143 setCite(cite); 144 } 145 146 150 public BlockQuote setCite(String cite) 151 { 152 addAttribute("cite",cite); 153 return(this); 154 } 155 156 160 public BlockQuote setCite(Element cite) 161 { 162 addAttribute("cite",cite); 163 return(this); 164 } 165 166 171 public BlockQuote addElement(String hashcode,Element element) 172 { 173 addElementToRegistry(hashcode,element); 174 return(this); 175 } 176 177 182 public BlockQuote addElement(String hashcode,String element) 183 { 184 addElementToRegistry(hashcode,element); 185 return(this); 186 } 187 188 192 public BlockQuote addElement(Element element) 193 { 194 addElementToRegistry(element); 195 return(this); 196 } 197 198 202 public BlockQuote addElement(String element) 203 { 204 addElementToRegistry(element); 205 return(this); 206 } 207 211 public BlockQuote removeElement(String hashcode) 212 { 213 removeElementFromRegistry(hashcode); 214 return(this); 215 } 216 217 223 public void setOnClick(String script) 224 { 225 addAttribute ( "onClick", script ); 226 } 227 233 public void setOnDblClick(String script) 234 { 235 addAttribute ( "onDblClick", script ); 236 } 237 243 public void setOnMouseDown(String script) 244 { 245 addAttribute ( "onMouseDown", script ); 246 } 247 253 public void setOnMouseUp(String script) 254 { 255 addAttribute ( "onMouseUp", script ); 256 } 257 263 public void setOnMouseOver(String script) 264 { 265 addAttribute ( "onMouseOver", script ); 266 } 267 273 public void setOnMouseMove(String script) 274 { 275 addAttribute ( "onMouseMove", script ); 276 } 277 283 public void setOnMouseOut(String script) 284 { 285 addAttribute ( "onMouseOut", script ); 286 } 287 288 294 public void setOnKeyPress(String script) 295 { 296 addAttribute ( "onKeyPress", script ); 297 } 298 299 305 public void setOnKeyDown(String script) 306 { 307 addAttribute ( "onKeyDown", script ); 308 } 309 310 316 public void setOnKeyUp(String script) 317 { 318 addAttribute ( "onKeyUp", script ); 319 } 320 } 321 | Popular Tags |