KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > improve > struts > taglib > layout > el > TextBlock


1 package fr.improve.struts.taglib.layout.el;
2
3 import javax.servlet.jsp.PageContext JavaDoc;
4
5 /**
6  * @author jer80876
7  */

8 public class TextBlock implements Block {
9     private String JavaDoc text;
10     
11     public TextBlock(String JavaDoc in_string) {
12         text = in_string;
13     }
14
15     /**
16      * @see com.beaufouripsen.seas.presentation.taglib.el.Block#evaluate(PageContext)
17      */

18     public String JavaDoc evaluate(PageContext JavaDoc in_pg) {
19         return text;
20     }
21     
22     public String JavaDoc toString() {
23         return new StringBuffer JavaDoc("[T(").append(text).append(")]").toString();
24     }
25
26 }
27
Popular Tags