KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > improve > struts > taglib > layout > util > FormUtilsInterface


1 /*
2  * Created on 17 oct. 2003
3  *
4  * To change the template for this generated file go to
5  * Window>Preferences>Java>Code Generation>Code and Comments
6  */

7 package fr.improve.struts.taglib.layout.util;
8
9 import javax.servlet.http.HttpServletRequest JavaDoc;
10 import javax.servlet.jsp.PageContext JavaDoc;
11
12 import org.apache.struts.action.ActionForm;
13
14 import fr.improve.struts.taglib.layout.field.AbstractModeFieldTag;
15
16 /**
17  * @author slave06e
18  *
19  * To change the template for this generated type comment go to
20  * Window>Preferences>Java>Code Generation>Code and Comments
21  */

22 public interface FormUtilsInterface {
23     public static final int CREATE_MODE = 0;
24     public static final int EDIT_MODE = 1;
25     public static final int INSPECT_MODE = 2;
26     
27     /**
28      * Get the form display mode
29      */

30     public abstract int getFormDisplayMode(PageContext JavaDoc in_page);
31     /**
32      * Get the field display mode
33      */

34     public abstract Integer JavaDoc getFieldDisplayMode(
35         PageContext JavaDoc in_page,
36         String JavaDoc in_fieldName);
37     /**
38      * Get the form display mode
39      */

40     public abstract int getFormDisplayMode(
41         HttpServletRequest JavaDoc in_request,
42         ActionForm in_form);
43     /**
44      * Get the field display mode
45      */

46     public abstract Integer JavaDoc getFieldDisplayMode(
47         HttpServletRequest JavaDoc in_request,
48         ActionForm in_form,
49         String JavaDoc in_fieldName);
50     /**
51      * Compute a field display mode.
52      * Used in custom tags
53      */

54     public abstract short computeFieldDisplayMode(AbstractModeFieldTag in_tag);
55     public abstract short computeFieldDisplayMode(PageContext JavaDoc in_pg, String JavaDoc in_mode);
56     
57     /**
58      * Get a field styleClass.
59      * Used in custom tags.
60      */

61     public abstract String JavaDoc getFieldStyleClass(AbstractModeFieldTag in_tag);
62     /**
63      * Get a field style.
64      * Used in custom tags.
65      */

66     public abstract String JavaDoc getFieldStyle(
67         PageContext JavaDoc in_pageContext,
68         String JavaDoc in_fieldName);
69     /**
70      * Get the style for the current field value.
71      */

72     public abstract String JavaDoc getFieldValueStyle(PageContext JavaDoc in_pageContext);
73 }
Popular Tags