1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class fieldset extends MultiPartElement implements Printable, MouseEvents, KeyEvents 71 { 72 75 { 76 setElementType("fieldset"); 77 setCase(LOWERCASE); 78 setAttributeQuote(true); 79 } 80 81 84 public fieldset() 85 { 86 } 87 88 92 public fieldset(Element element) 93 { 94 addElement(element); 95 } 96 97 101 public fieldset(String element) 102 { 103 addElement(element); 104 } 105 106 110 public Element setLang(String lang) 111 { 112 addAttribute("lang",lang); 113 addAttribute("xml:lang",lang); 114 return this; 115 } 116 117 122 public fieldset addElement(String hashcode,Element element) 123 { 124 addElementToRegistry(hashcode,element); 125 return(this); 126 } 127 128 133 public fieldset addElement(String hashcode,String element) 134 { 135 addElementToRegistry(hashcode,element); 136 return(this); 137 } 138 142 public fieldset addElement(Element element) 143 { 144 addElementToRegistry(element); 145 return(this); 146 } 147 148 152 public fieldset addElement(String element) 153 { 154 addElementToRegistry(element); 155 return(this); 156 } 157 161 public fieldset removeElement(String hashcode) 162 { 163 removeElementFromRegistry(hashcode); 164 return(this); 165 } 166 167 173 public void setOnClick(String script) 174 { 175 addAttribute ( "onclick", script ); 176 } 177 183 public void setOnDblClick(String script) 184 { 185 addAttribute ( "ondblclick", script ); 186 } 187 193 public void setOnMouseDown(String script) 194 { 195 addAttribute ( "onmousedown", script ); 196 } 197 203 public void setOnMouseUp(String script) 204 { 205 addAttribute ( "onmouseup", script ); 206 } 207 213 public void setOnMouseOver(String script) 214 { 215 addAttribute ( "onmouseover", script ); 216 } 217 223 public void setOnMouseMove(String script) 224 { 225 addAttribute ( "onmousemove", script ); 226 } 227 233 public void setOnMouseOut(String script) 234 { 235 addAttribute ( "onmouseout", script ); 236 } 237 238 244 public void setOnKeyPress(String script) 245 { 246 addAttribute ( "onkeypress", script ); 247 } 248 249 255 public void setOnKeyDown(String script) 256 { 257 addAttribute ( "onkeydown", script ); 258 } 259 260 266 public void setOnKeyUp(String script) 267 { 268 addAttribute ( "onkeyup", script ); 269 } 270 } 271 | Popular Tags |