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