1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 69 public class FrameSet extends MultiPartElement implements Printable, PageEvents 70 { 71 74 { 75 setElementType("frameset"); 76 } 77 78 81 public FrameSet() 82 { 83 } 84 85 89 public FrameSet(Element element) 90 { 91 addElement(element); 92 } 93 94 98 public FrameSet(String element) 99 { 100 addElement(element); 101 } 102 103 108 public FrameSet(String rows, String cols) 109 { 110 setRows(rows); 111 setCols(cols); 112 } 113 114 120 public FrameSet(String rows, String cols, Element element) 121 { 122 addElement(element); 123 setRows(rows); 124 setCols(cols); 125 } 126 127 133 public FrameSet(String rows, String cols, String element) 134 { 135 addElement(element); 136 setRows(rows); 137 setCols(cols); 138 } 139 140 144 public FrameSet setRows(int rows) 145 { 146 setRows(Integer.toString(rows)); 147 return(this); 148 } 149 150 154 public FrameSet setRows(String rows) 155 { 156 addAttribute("rows",rows); 157 return(this); 158 } 159 160 164 public FrameSet setCols(int cols) 165 { 166 setCols(Integer.toString(cols)); 167 return(this); 168 } 169 170 174 public FrameSet setCols(String cols) 175 { 176 addAttribute("cols",cols); 177 return(this); 178 } 179 180 185 public FrameSet addElement(String hashcode,Element element) 186 { 187 addElementToRegistry(hashcode,element); 188 return(this); 189 } 190 191 196 public FrameSet addElement(String hashcode,String element) 197 { 198 addElementToRegistry(hashcode,element); 199 return(this); 200 } 201 205 public FrameSet addElement(Element element) 206 { 207 addElementToRegistry(element); 208 return(this); 209 } 210 211 215 public FrameSet addElement(String element) 216 { 217 addElementToRegistry(element); 218 return(this); 219 } 220 224 public FrameSet removeElement(String hashcode) 225 { 226 removeElementFromRegistry(hashcode); 227 return(this); 228 } 229 230 237 public void setOnLoad(String script) 238 { 239 addAttribute ( "onLoad", script ); 240 } 241 242 249 public void setOnUnload(String script) 250 { 251 addAttribute ( "onUnload", script ); 252 } 253 } 254 | Popular Tags |