1 5 package org.exoplatform.text.template.xhtml; 6 7 import java.io.IOException ; 8 import java.io.Writer ; 9 import java.util.ResourceBundle ; 10 import org.exoplatform.text.template.DataHandler; 11 12 17 public class Paragraph extends Text { 18 19 public Paragraph(String value) { 20 super(value); 21 } 22 23 public void render(XhtmlDataHandlerManager manager, 24 ResourceBundle res, Writer w) throws IOException { 25 w.write("<p>") ; 26 DataHandler dh = manager.getDataHandler(dataHandlerType_) ; 27 w.write(resolveValueAsString(data_ ,dh, res)) ; 28 w.write("</p>") ; 29 } 30 } | Popular Tags |