KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > improve > struts > taglib > layout > formatter > AbstractFormatter


1 package fr.improve.struts.taglib.layout.formatter;
2
3 import javax.servlet.jsp.PageContext JavaDoc;
4 /**
5  * Struts-Layout abstract formatter class.<br/>
6  *
7  * A formatter is a class that is responsible for formatting data.
8  * This class is intended to be subclassed directly.
9  * The formatter class must be defined in the skin configuration file.
10  *
11  * @author: Jean-Noel Ribette
12  * @see fr.improve.struts.taglib.layout.formatter.DispatchFormatter
13  */

14 public abstract class AbstractFormatter {
15     /**
16      * Format the specified in_value object with the specified in_format format.
17      * @param in_value the value to format, which can be null.
18      * @param in_format the format to apply. This is the value specified in the type attribute of the struts-layout tags supporting this attribute.
19      * @patam in_pageContext the current pageContext
20      */

21     public abstract String JavaDoc format(Object JavaDoc in_value, String JavaDoc in_format, PageContext JavaDoc in_pageContext) throws FormatException;
22 }
23
Popular Tags