1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 73 public class DT extends MultiPartElement implements Printable, MouseEvents, KeyEvents 74 { 75 78 { 79 setElementType("dt"); 80 setNeedClosingTag(false); 81 } 82 83 86 public DT() 87 { 88 } 89 90 94 public DT(String value) 95 { 96 addElement(value); 97 } 98 99 104 public DT addElement(String hashcode,Element element) 105 { 106 addElementToRegistry(hashcode,element); 107 return(this); 108 } 109 110 115 public DT addElement(String hashcode,String element) 116 { 117 addElementToRegistry(hashcode,element); 118 return(this); 119 } 120 121 125 public DT addElement(Element element) 126 { 127 addElementToRegistry(element); 128 return(this); 129 } 130 134 public DT addElement(String element) 135 { 136 addElementToRegistry(element); 137 return(this); 138 } 139 143 public DT removeElement(String hashcode) 144 { 145 removeElementFromRegistry(hashcode); 146 return(this); 147 } 148 149 155 public void setOnClick(String script) 156 { 157 addAttribute ( "onClick", script ); 158 } 159 165 public void setOnDblClick(String script) 166 { 167 addAttribute ( "onDblClick", script ); 168 } 169 175 public void setOnMouseDown(String script) 176 { 177 addAttribute ( "onMouseDown", script ); 178 } 179 185 public void setOnMouseUp(String script) 186 { 187 addAttribute ( "onMouseUp", script ); 188 } 189 195 public void setOnMouseOver(String script) 196 { 197 addAttribute ( "onMouseOver", script ); 198 } 199 205 public void setOnMouseMove(String script) 206 { 207 addAttribute ( "onMouseMove", script ); 208 } 209 215 public void setOnMouseOut(String script) 216 { 217 addAttribute ( "onMouseOut", script ); 218 } 219 220 226 public void setOnKeyPress(String script) 227 { 228 addAttribute ( "onKeyPress", script ); 229 } 230 231 237 public void setOnKeyDown(String script) 238 { 239 addAttribute ( "onKeyDown", script ); 240 } 241 242 248 public void setOnKeyUp(String script) 249 { 250 addAttribute ( "onKeyUp", script ); 251 } 252 } 253 | Popular Tags |