1 58 package org.apache.ecs.wml; 59 60 import org.apache.ecs.*; 61 62 68 public class Card extends org.apache.ecs.MultiPartElement 69 { 70 73 public Card() 74 { 75 setElementType("card"); 76 } 77 78 83 public Card(String id, String attrTitle) 84 { 85 setElementType("card"); 86 addAttribute("id", id); 87 addAttribute("title", attrTitle); 88 } 89 90 94 public Card setCardId(String name) 95 { 96 addAttribute("id", name); 97 return this; 98 } 99 100 104 public Card setCardTitle(String title) 105 { 106 addAttribute("title", title); 107 return this; 108 } 109 110 114 public Card setNewContext(boolean newcontext) 115 { 116 addAttribute("newcontext", String.valueOf(newcontext)); 117 return this; 118 } 119 120 124 public Card addElement(Element element) 125 { 126 addElementToRegistry(element,getFilterState()); 127 return(this); 128 } 129 130 134 public Card addElement(String element) 135 { 136 addElementToRegistry(element,getFilterState()); 137 return(this); 138 } 139 } 140 | Popular Tags |