KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > text > template > xhtml > Paragraph


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.text.template.xhtml;
6
7 import java.io.IOException JavaDoc;
8 import java.io.Writer JavaDoc;
9 import java.util.ResourceBundle JavaDoc;
10 import org.exoplatform.text.template.DataHandler;
11
12 /**
13  * @author Tuan Nguyen (tuan08@users.sourceforge.net)
14  * @since Feb 1, 2005
15  * @version $Id$
16  */

17 public class Paragraph extends Text {
18   
19   public Paragraph(String JavaDoc value) {
20     super(value);
21   }
22   
23   public void render(XhtmlDataHandlerManager manager,
24                      ResourceBundle JavaDoc res, Writer JavaDoc w) throws IOException JavaDoc {
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