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