1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 69 public class B extends MultiPartElement implements Printable, MouseEvents, KeyEvents 70 { 71 74 { 75 setElementType("b"); 76 } 77 80 public B() 81 { 82 } 83 84 88 public B(Element element) 89 { 90 addElement(element); 91 } 92 93 97 public B(String element) 98 { 99 addElement(element); 100 } 101 102 107 public B addElement(String hashcode,Element element) 108 { 109 addElementToRegistry(hashcode,element); 110 return(this); 111 } 112 113 118 public B addElement(String hashcode,String element) 119 { 120 addElementToRegistry(hashcode,element); 121 return(this); 122 } 123 127 public B addElement(Element element) 128 { 129 addElementToRegistry(element); 130 return(this); 131 } 132 133 137 public B addElement(String element) 138 { 139 addElementToRegistry(element); 140 return(this); 141 } 142 146 public B removeElement(String hashcode) 147 { 148 removeElementFromRegistry(hashcode); 149 return(this); 150 } 151 152 158 public void setOnClick(String script) 159 { 160 addAttribute ( "onClick", script ); 161 } 162 168 public void setOnDblClick(String script) 169 { 170 addAttribute ( "onDblClick", script ); 171 } 172 178 public void setOnMouseDown(String script) 179 { 180 addAttribute ( "onMouseDown", script ); 181 } 182 188 public void setOnMouseUp(String script) 189 { 190 addAttribute ( "onMouseUp", script ); 191 } 192 198 public void setOnMouseOver(String script) 199 { 200 addAttribute ( "onMouseOver", script ); 201 } 202 208 public void setOnMouseMove(String script) 209 { 210 addAttribute ( "onMouseMove", script ); 211 } 212 218 public void setOnMouseOut(String script) 219 { 220 addAttribute ( "onMouseOut", script ); 221 } 222 223 229 public void setOnKeyPress(String script) 230 { 231 addAttribute ( "onKeyPress", script ); 232 } 233 234 240 public void setOnKeyDown(String script) 241 { 242 addAttribute ( "onKeyDown", script ); 243 } 244 245 251 public void setOnKeyUp(String script) 252 { 253 addAttribute ( "onKeyUp", script ); 254 } 255 } 256 | Popular Tags |