1 20 package org.enhydra.barracuda.contrib.dbroggisch.repopulation; 21 22 import org.enhydra.barracuda.core.forms.DefaultFormElement; 23 import org.enhydra.barracuda.core.forms.FormType; 24 import org.enhydra.barracuda.core.comp.ViewContext; 25 import org.enhydra.barracuda.core.comp.BText; 26 import org.enhydra.barracuda.core.forms.ParseException; 27 28 public class TextAreaFormElement extends DefaultFormElement implements RepopulationElement { 29 30 32 public TextAreaFormElement(java.lang.String name, org.enhydra.barracuda.core.forms.FormType ft, Object defaultVal) { 33 super(name, ft, defaultVal); 35 } 37 38 39 public Object render(ViewContext context) { 40 BText bt = new BText(); 41 Object val = getOrigVal(); 42 if(val != null) { 43 bt.setText("" + val); 44 } 45 return bt; 49 } 50 } 51 52 | Popular Tags |