1 58 package org.apache.ecs.wml; 59 60 import org.apache.ecs.Element; 61 import org.apache.ecs.MultiPartElement; 62 63 69 public class A extends org.apache.ecs.MultiPartElement 70 { 71 72 76 public A() 77 { 78 setElementType("a"); 79 } 80 81 82 87 public A(String href, String title) 88 { 89 this(); 90 setHref(href); 91 setTitleAttr(title); 92 } 93 94 98 public A(String href) 99 { 100 this(); 101 setHref(href); 102 } 103 104 108 public A setTitleAttr(String title) 109 { 110 addAttribute("title", title); 111 return this; 112 } 113 114 118 public A setHref(String href) 119 { 120 addAttribute("href", href); 121 return this; 122 } 123 124 128 public A addElement(String element) 129 { 130 addElementToRegistry(element, getFilterState()); 131 return(this); 132 } 133 134 135 } 136 | Popular Tags |