1 58 package org.apache.ecs.wml; 59 60 import org.apache.ecs.Element; 61 import org.apache.ecs.SinglePartElement; 62 63 69 public class Select extends org.apache.ecs.MultiPartElement 70 { 71 75 public Select() { 76 setElementType("select"); 77 } 78 79 84 public Select(String name, String value) 85 { 86 this(); 87 setName(name); 88 setValue(value); 89 } 90 91 95 public Select setName(String name) 96 { 97 addAttribute("name", name); 98 return this; 99 } 100 101 public Select setValue(String value) 105 { 106 addAttribute("value", value); 107 return this; 108 } 109 110 114 public Select setTitleAttr(String title) 115 { 116 addAttribute("title", title); 117 return this; 118 } 119 120 124 public Select addElement(Element element) 125 { 126 addElementToRegistry(element, getFilterState()); 127 return(this); 128 } 129 } 130 | Popular Tags |