1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class colgroup extends MultiPartElement implements Printable 71 { 72 75 { 76 setElementType("colgroup"); 77 setCase(LOWERCASE); 78 setAttributeQuote(true); 79 } 80 public colgroup() 81 { 82 } 83 84 88 public colgroup setSpan(String span) 89 { 90 addAttribute("span",span); 91 return(this); 92 } 93 94 98 public colgroup setSpan(int span) 99 { 100 addAttribute("span",Integer.toString(span)); 101 return(this); 102 } 103 104 108 public colgroup setWidth(int width) 109 { 110 addAttribute("width",Integer.toString(width)); 111 return(this); 112 } 113 114 118 public colgroup setWidth(String width) 119 { 120 addAttribute("width",width); 121 return(this); 122 } 123 124 128 public colgroup setAlign(String align) 129 { 130 addAttribute("align",align); 131 return(this); 132 } 133 134 138 public colgroup setVAlign(String valign) 139 { 140 addAttribute("valign",valign); 141 return(this); 142 } 143 144 148 public colgroup setChar(String character) 149 { 150 addAttribute("char",character); 151 return(this); 152 } 153 154 159 public colgroup setCharOff(int char_off) 160 { 161 addAttribute("charoff",Integer.toString(char_off)); 162 return(this); 163 } 164 165 170 public colgroup setCharOff(String char_off) 171 { 172 addAttribute("charoff",char_off); 173 return(this); 174 } 175 176 180 public Element setLang(String lang) 181 { 182 addAttribute("lang",lang); 183 addAttribute("xml:lang",lang); 184 return this; 185 } 186 187 192 public colgroup addElement(String hashcode,Element element) 193 { 194 addElementToRegistry(hashcode,element); 195 return(this); 196 } 197 198 203 public colgroup addElement(String hashcode,String element) 204 { 205 addElementToRegistry(hashcode,element); 206 return(this); 207 } 208 212 public colgroup addElement(Element element) 213 { 214 addElementToRegistry(element); 215 return(this); 216 } 217 218 222 public colgroup addElement(String element) 223 { 224 addElementToRegistry(element); 225 return(this); 226 } 227 231 public colgroup removeElement(String hashcode) 232 { 233 removeElementFromRegistry(hashcode); 234 return(this); 235 } 236 } 237 | Popular Tags |