1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 69 public class H4 extends MultiPartElement implements Printable, MouseEvents, KeyEvents 70 { 71 74 { 75 setElementType("h4"); 76 } 77 78 82 public H4() 83 { 84 } 85 86 92 public H4(Element element) 93 { 94 addElement(element); 95 } 96 97 103 public H4(String value) 104 { 105 addElement(value); 106 } 107 108 113 public H4 addElement(String hashcode,Element element) 114 { 115 addElementToRegistry(hashcode,element); 116 return(this); 117 } 118 119 124 public H4 addElement(String hashcode,String element) 125 { 126 addElementToRegistry(hashcode,element); 127 return(this); 128 } 129 130 134 public H4 addElement(Element element) 135 { 136 addElementToRegistry(element); 137 return(this); 138 } 139 143 public H4 addElement(String element) 144 { 145 addElementToRegistry(element); 146 return(this); 147 } 148 152 public H4 removeElement(String hashcode) 153 { 154 removeElementFromRegistry(hashcode); 155 return(this); 156 } 157 158 164 public void setOnClick(String script) 165 { 166 addAttribute ( "onClick", script ); 167 } 168 174 public void setOnDblClick(String script) 175 { 176 addAttribute ( "onDblClick", script ); 177 } 178 184 public void setOnMouseDown(String script) 185 { 186 addAttribute ( "onMouseDown", script ); 187 } 188 194 public void setOnMouseUp(String script) 195 { 196 addAttribute ( "onMouseUp", script ); 197 } 198 204 public void setOnMouseOver(String script) 205 { 206 addAttribute ( "onMouseOver", script ); 207 } 208 214 public void setOnMouseMove(String script) 215 { 216 addAttribute ( "onMouseMove", script ); 217 } 218 224 public void setOnMouseOut(String script) 225 { 226 addAttribute ( "onMouseOut", script ); 227 } 228 229 235 public void setOnKeyPress(String script) 236 { 237 addAttribute ( "onKeyPress", script ); 238 } 239 240 246 public void setOnKeyDown(String script) 247 { 248 addAttribute ( "onKeyDown", script ); 249 } 250 251 257 public void setOnKeyUp(String script) 258 { 259 addAttribute ( "onKeyUp", script ); 260 } 261 } 262 | Popular Tags |