1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 69 public class BR extends SinglePartElement implements Printable 70 { 71 74 { 75 setElementType("br"); 76 } 77 78 82 public BR() 83 { 84 } 85 86 92 public BR(String clear_type) 93 { 94 setClear(clear_type); 95 } 96 97 104 public BR(String clear_type, String title) 105 { 106 setClear(clear_type); 107 setTitle(title); 108 } 109 110 114 public BR setClear(String clear_type) 115 { 116 addAttribute("clear",clear_type); 117 return this; 118 } 119 120 125 public BR addElement(String hashcode,Element element) 126 { 127 addElementToRegistry(hashcode,element); 128 return(this); 129 } 130 131 136 public BR addElement(String hashcode,String element) 137 { 138 addElementToRegistry(hashcode,element); 139 return(this); 140 } 141 142 146 public BR addElement(Element element) 147 { 148 addElementToRegistry(element); 149 return(this); 150 } 151 155 public BR addElement(String element) 156 { 157 addElementToRegistry(element); 158 return(this); 159 } 160 164 public BR removeElement(String hashcode) 165 { 166 removeElementFromRegistry(hashcode); 167 return(this); 168 } 169 } 170 | Popular Tags |