1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class ul extends MultiPartElement implements Printable, MouseEvents, KeyEvents 71 { 72 75 { 76 setElementType("ul"); 77 setCase(LOWERCASE); 78 setAttributeQuote(true); 79 } 80 83 public ul() 84 { 85 } 86 87 91 public ul(li[] list) 92 { 93 addElement(list); 94 } 95 96 100 public ul(String [] list) 101 { 102 addElement(list); 103 } 104 105 109 public Element setLang(String lang) 110 { 111 addAttribute("lang",lang); 112 addAttribute("xml:lang",lang); 113 return this; 114 } 115 116 120 public ul addElement(li[] list) 121 { 122 for(int x = 0; x < list.length; x++) 123 { 124 addElement(list[x]); 125 } 126 return(this); 127 } 128 129 134 public ul addElement(String hashcode,Element element) 135 { 136 addElementToRegistry(hashcode,element); 137 return(this); 138 } 139 140 145 public ul addElement(String hashcode,String element) 146 { 147 addElementToRegistry(hashcode,element); 148 return(this); 149 } 150 151 155 public ul addElement(Element element) 156 { 157 addElementToRegistry(element); 158 return(this); 159 } 160 161 165 public ul addElement(String element) 166 { 167 addElementToRegistry(element); 168 return(this); 169 } 170 171 175 public ul addElement(String [] element) 176 { 177 li[] li = new li().addElement(element); 178 addElement(li); 179 return(this); 180 } 181 185 public ul removeElement(String hashcode) 186 { 187 removeElementFromRegistry(hashcode); 188 return(this); 189 } 190 191 197 public void setOnClick(String script) 198 { 199 addAttribute ( "onclick", script ); 200 } 201 207 public void setOnDblClick(String script) 208 { 209 addAttribute ( "ondblclick", script ); 210 } 211 217 public void setOnMouseDown(String script) 218 { 219 addAttribute ( "onmousedown", script ); 220 } 221 227 public void setOnMouseUp(String script) 228 { 229 addAttribute ( "onmouseup", script ); 230 } 231 237 public void setOnMouseOver(String script) 238 { 239 addAttribute ( "onmouseover", script ); 240 } 241 247 public void setOnMouseMove(String script) 248 { 249 addAttribute ( "onmousemove", script ); 250 } 251 257 public void setOnMouseOut(String script) 258 { 259 addAttribute ( "onmouseout", script ); 260 } 261 262 268 public void setOnKeyPress(String script) 269 { 270 addAttribute ( "onkeypress", script ); 271 } 272 273 279 public void setOnKeyDown(String script) 280 { 281 addAttribute ( "onkeydown", script ); 282 } 283 284 290 public void setOnKeyUp(String script) 291 { 292 addAttribute ( "onkeyup", script ); 293 } 294 } 295 | Popular Tags |