1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class frameset extends MultiPartElement implements Printable, PageEvents 71 { 72 75 { 76 setElementType("frameset"); 77 setCase(LOWERCASE); 78 setAttributeQuote(true); 79 } 80 81 84 public frameset() 85 { 86 } 87 88 92 public frameset(Element element) 93 { 94 addElement(element); 95 } 96 97 101 public frameset(String element) 102 { 103 addElement(element); 104 } 105 106 111 public frameset(String rows, String cols) 112 { 113 setRows(rows); 114 setCols(cols); 115 } 116 117 123 public frameset(String rows, String cols, Element element) 124 { 125 addElement(element); 126 setRows(rows); 127 setCols(cols); 128 } 129 130 136 public frameset(String rows, String cols, String element) 137 { 138 addElement(element); 139 setRows(rows); 140 setCols(cols); 141 } 142 143 147 public frameset setRows(int rows) 148 { 149 setRows(Integer.toString(rows)); 150 return(this); 151 } 152 153 157 public frameset setRows(String rows) 158 { 159 addAttribute("rows",rows); 160 return(this); 161 } 162 163 167 public frameset setCols(int cols) 168 { 169 setCols(Integer.toString(cols)); 170 return(this); 171 } 172 173 177 public frameset setCols(String cols) 178 { 179 addAttribute("cols",cols); 180 return(this); 181 } 182 183 187 public Element setLang(String lang) 188 { 189 addAttribute("lang",lang); 190 addAttribute("xml:lang",lang); 191 return this; 192 } 193 194 199 public frameset addElement(String hashcode,Element element) 200 { 201 addElementToRegistry(hashcode,element); 202 return(this); 203 } 204 205 210 public frameset addElement(String hashcode,String element) 211 { 212 addElementToRegistry(hashcode,element); 213 return(this); 214 } 215 219 public frameset addElement(Element element) 220 { 221 addElementToRegistry(element); 222 return(this); 223 } 224 225 229 public frameset addElement(String element) 230 { 231 addElementToRegistry(element); 232 return(this); 233 } 234 238 public frameset removeElement(String hashcode) 239 { 240 removeElementFromRegistry(hashcode); 241 return(this); 242 } 243 244 251 public void setOnLoad(String script) 252 { 253 addAttribute ( "onload", script ); 254 } 255 256 263 public void setOnUnload(String script) 264 { 265 addAttribute ( "onunload", script ); 266 } 267 } 268 | Popular Tags |