1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 69 public class H3 extends MultiPartElement implements Printable, MouseEvents, KeyEvents 70 { 71 74 { 75 setElementType("h3"); 76 } 77 81 public H3() 82 { 83 } 84 85 91 public H3(Element element) 92 { 93 addElement(element); 94 } 95 96 102 public H3(String value) 103 { 104 addElement(value); 105 } 106 107 112 public H3 addElement(String hashcode,Element element) 113 { 114 addElementToRegistry(hashcode,element); 115 return(this); 116 } 117 118 123 public H3 addElement(String hashcode,String element) 124 { 125 addElementToRegistry(hashcode,element); 126 return(this); 127 } 128 129 133 public H3 addElement(Element element) 134 { 135 addElementToRegistry(element); 136 return(this); 137 } 138 142 public H3 addElement(String element) 143 { 144 addElementToRegistry(element); 145 return(this); 146 } 147 151 public H3 removeElement(String hashcode) 152 { 153 removeElementFromRegistry(hashcode); 154 return(this); 155 } 156 157 163 public void setOnClick(String script) 164 { 165 addAttribute ( "onClick", script ); 166 } 167 173 public void setOnDblClick(String script) 174 { 175 addAttribute ( "onDblClick", script ); 176 } 177 183 public void setOnMouseDown(String script) 184 { 185 addAttribute ( "onMouseDown", script ); 186 } 187 193 public void setOnMouseUp(String script) 194 { 195 addAttribute ( "onMouseUp", script ); 196 } 197 203 public void setOnMouseOver(String script) 204 { 205 addAttribute ( "onMouseOver", script ); 206 } 207 213 public void setOnMouseMove(String script) 214 { 215 addAttribute ( "onMouseMove", script ); 216 } 217 223 public void setOnMouseOut(String script) 224 { 225 addAttribute ( "onMouseOut", script ); 226 } 227 228 234 public void setOnKeyPress(String script) 235 { 236 addAttribute ( "onKeyPress", script ); 237 } 238 239 245 public void setOnKeyDown(String script) 246 { 247 addAttribute ( "onKeyDown", script ); 248 } 249 250 256 public void setOnKeyUp(String script) 257 { 258 addAttribute ( "onKeyUp", script ); 259 } 260 } 261 | Popular Tags |