1 23 package org.infoglue.cms.workflow.taglib; 24 25 31 public class ContentTextFieldTag extends ElementTag 32 { 33 36 private static final long serialVersionUID = 925996908046500785L; 37 38 41 public ContentTextFieldTag() 42 { 43 super(); 44 } 45 46 51 protected Element createElement() 52 { 53 return new Element("input").addAttribute("type", "text"); 54 } 55 56 63 public void setName(final String name) 64 { 65 getElement().addAttribute("name", name); 66 getElement().addAttribute("value", getPropertySet().getDataString(name)); 67 } 68 69 74 public void setReadonly(final boolean isReadonly) 75 { 76 getElement().addAttribute("readonly", "readonly", isReadonly); 77 } 78 } 79 | Popular Tags |