1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 69 public class ColGroup extends MultiPartElement implements Printable 70 { 71 74 { 75 setElementType("colgroup"); 76 setNeedClosingTag(false); 77 } 78 public ColGroup() 79 { 80 } 81 82 86 public ColGroup setSpan(String span) 87 { 88 addAttribute("span",span); 89 return(this); 90 } 91 92 96 public ColGroup setSpan(int span) 97 { 98 addAttribute("span",Integer.toString(span)); 99 return(this); 100 } 101 102 106 public ColGroup setWidth(int width) 107 { 108 addAttribute("width",Integer.toString(width)); 109 return(this); 110 } 111 112 116 public ColGroup setWidth(String width) 117 { 118 addAttribute("width",width); 119 return(this); 120 } 121 122 126 public ColGroup setAlign(String align) 127 { 128 addAttribute("align",align); 129 return(this); 130 } 131 132 136 public ColGroup setVAlign(String valign) 137 { 138 addAttribute("valign",valign); 139 return(this); 140 } 141 142 146 public ColGroup setChar(String character) 147 { 148 addAttribute("char",character); 149 return(this); 150 } 151 152 157 public ColGroup setCharOff(int char_off) 158 { 159 addAttribute("charoff",Integer.toString(char_off)); 160 return(this); 161 } 162 163 168 public ColGroup setCharOff(String char_off) 169 { 170 addAttribute("charoff",char_off); 171 return(this); 172 } 173 174 179 public ColGroup addElement(String hashcode,Element element) 180 { 181 addElementToRegistry(hashcode,element); 182 return(this); 183 } 184 185 190 public ColGroup addElement(String hashcode,String element) 191 { 192 addElementToRegistry(hashcode,element); 193 return(this); 194 } 195 199 public ColGroup addElement(Element element) 200 { 201 addElementToRegistry(element); 202 return(this); 203 } 204 205 209 public ColGroup addElement(String element) 210 { 211 addElementToRegistry(element); 212 return(this); 213 } 214 218 public ColGroup removeElement(String hashcode) 219 { 220 removeElementFromRegistry(hashcode); 221 return(this); 222 } 223 } 224 | Popular Tags |