1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 69 public class DL extends MultiPartElement implements Printable, MouseEvents, KeyEvents 70 { 71 74 { 75 setElementType("dl"); 76 } 77 78 81 public DL() 82 { 83 } 84 85 90 public DL addElement(String hashcode,Element element) 91 { 92 addElementToRegistry(hashcode,element); 93 return(this); 94 } 95 96 101 public DL addElement(String hashcode,String element) 102 { 103 addElementToRegistry(hashcode,element); 104 return(this); 105 } 106 110 public DL addElement(Element element) 111 { 112 addElementToRegistry(element); 113 return(this); 114 } 115 116 120 public DL addElement(String element) 121 { 122 addElementToRegistry(element); 123 return(this); 124 } 125 129 public DL removeElement(String hashcode) 130 { 131 removeElementFromRegistry(hashcode); 132 return(this); 133 } 134 135 141 public void setOnClick(String script) 142 { 143 addAttribute ( "onClick", script ); 144 } 145 151 public void setOnDblClick(String script) 152 { 153 addAttribute ( "onDblClick", script ); 154 } 155 161 public void setOnMouseDown(String script) 162 { 163 addAttribute ( "onMouseDown", script ); 164 } 165 171 public void setOnMouseUp(String script) 172 { 173 addAttribute ( "onMouseUp", script ); 174 } 175 181 public void setOnMouseOver(String script) 182 { 183 addAttribute ( "onMouseOver", script ); 184 } 185 191 public void setOnMouseMove(String script) 192 { 193 addAttribute ( "onMouseMove", script ); 194 } 195 201 public void setOnMouseOut(String script) 202 { 203 addAttribute ( "onMouseOut", script ); 204 } 205 206 212 public void setOnKeyPress(String script) 213 { 214 addAttribute ( "onKeyPress", script ); 215 } 216 217 223 public void setOnKeyDown(String script) 224 { 225 addAttribute ( "onKeyDown", script ); 226 } 227 228 234 public void setOnKeyUp(String script) 235 { 236 addAttribute ( "onKeyUp", script ); 237 } 238 } 239 | Popular Tags |