1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 69 public class H6 extends MultiPartElement implements Printable, MouseEvents, KeyEvents 70 { 71 74 { 75 setElementType("h6"); 76 } 77 81 public H6() 82 { 83 } 84 85 91 public H6(Element element) 92 { 93 addElement(element); 94 } 95 96 102 public H6(String value) 103 { 104 addElement(value); 105 } 106 107 112 public H6 addElement(String hashcode,Element element) 113 { 114 addElementToRegistry(hashcode,element); 115 return(this); 116 } 117 118 123 public H6 addElement(String hashcode,String element) 124 { 125 addElementToRegistry(hashcode,element); 126 return(this); 127 } 128 129 133 public H6 addElement(Element element) 134 { 135 addElementToRegistry(element); 136 return(this); 137 } 138 139 143 public H6 addElement(String element) 144 { 145 addElementToRegistry(element); 146 return(this); 147 } 148 152 public H6 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 |