1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 73 public class DD extends MultiPartElement implements Printable, MouseEvents, KeyEvents 74 { 75 78 { 79 setElementType("dd"); 80 setNeedClosingTag(false); 81 } 82 85 public DD() 86 { 87 } 88 89 93 public DD(String value) 94 { 95 addElement(value); 96 } 97 98 103 public DD addElement(String hashcode,Element element) 104 { 105 addElementToRegistry(hashcode,element); 106 return(this); 107 } 108 109 114 public DD addElement(String hashcode,String element) 115 { 116 addElementToRegistry(hashcode,element); 117 return(this); 118 } 119 123 public DD addElement(Element element) 124 { 125 addElementToRegistry(element); 126 return(this); 127 } 128 132 public DD addElement(String element) 133 { 134 addElementToRegistry(element); 135 return(this); 136 } 137 141 public DD removeElement(String hashcode) 142 { 143 removeElementFromRegistry(hashcode); 144 return(this); 145 } 146 147 153 public void setOnClick(String script) 154 { 155 addAttribute ( "onClick", script ); 156 } 157 163 public void setOnDblClick(String script) 164 { 165 addAttribute ( "onDblClick", script ); 166 } 167 173 public void setOnMouseDown(String script) 174 { 175 addAttribute ( "onMouseDown", script ); 176 } 177 183 public void setOnMouseUp(String script) 184 { 185 addAttribute ( "onMouseUp", script ); 186 } 187 193 public void setOnMouseOver(String script) 194 { 195 addAttribute ( "onMouseOver", script ); 196 } 197 203 public void setOnMouseMove(String script) 204 { 205 addAttribute ( "onMouseMove", script ); 206 } 207 213 public void setOnMouseOut(String script) 214 { 215 addAttribute ( "onMouseOut", script ); 216 } 217 218 224 public void setOnKeyPress(String script) 225 { 226 addAttribute ( "onKeyPress", script ); 227 } 228 229 235 public void setOnKeyDown(String script) 236 { 237 addAttribute ( "onKeyDown", script ); 238 } 239 240 246 public void setOnKeyUp(String script) 247 { 248 addAttribute ( "onKeyUp", script ); 249 } 250 } 251 | Popular Tags |