KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > albel > tags > table > RowsTag


1 package albel.tags.table;
2
3 import javax.servlet.jsp.*;
4 import javax.servlet.*;
5 import javax.servlet.jsp.tagext.*;
6 import javax.servlet.http.*;
7 import albel.tags.table.utils.*;
8 import albel.tags.table.model.*;
9 import albel.tags.table.controll.*;
10 /**
11  * @author albel
12  * This class is holder of the columns definition used to render table cells.
13  */

14 public class RowsTag extends BodyTagSupport
15 {
16     
17     public RowsTag()
18     {
19         super();
20     }
21     
22     ////////////////////////////////////////////////////////////////
23
/// ///
24
/// User methods. ///
25
/// ///
26
/// Modify these methods to customize your tag handler. ///
27
/// ///
28
////////////////////////////////////////////////////////////////
29

30     
31     //
32
// methods called from doStartTag()
33
//
34
/**
35      *
36      * Fill in this method to perform other operations from doStartTag().
37      *
38      */

39     public void otherDoStartTagOperations()
40     {
41         
42         //
43
// TODO: code that performs other operations in doStartTag
44
// should be placed here.
45
// It will be called after initializing variables,
46
// finding the parent, setting IDREFs, etc, and
47
// before calling theBodyShouldBeEvaluated().
48
//
49
// For example, to print something out to the JSP, use the following:
50
//
51
// try {
52
// JspWriter out = pageContext.getOut();
53
// out.println("something");
54
// } catch (java.io.IOException ex) {
55
// // do something
56
// }
57
//
58
//
59

60         
61     }
62     
63     /**
64      *
65      * Fill in this method to determine if the tag body should be evaluated
66      * Called from doStartTag().
67      *
68      */

69     public boolean theBodyShouldBeEvaluated()
70     {
71         
72         //
73
// TODO: code that determines whether the body should be
74
// evaluated should be placed here.
75
// Called from the doStartTag() method.
76
//
77
return true;
78         
79     }
80     
81     
82     //
83
// methods called from doEndTag()
84
//
85
/**
86      *
87      * Fill in this method to perform other operations from doEndTag().
88      *
89      */

90     public void otherDoEndTagOperations()
91     {
92         
93         //
94
// TODO: code that performs other operations in doEndTag
95
// should be placed here.
96
// It will be called after initializing variables,
97
// finding the parent, setting IDREFs, etc, and
98
// before calling shouldEvaluateRestOfPageAfterEndTag().
99
//
100

101         
102     }
103     
104     /**
105      *
106      * Fill in this method to determine if the rest of the JSP page
107      * should be generated after this tag is finished.
108      * Called from doEndTag().
109      *
110      */

111     public boolean shouldEvaluateRestOfPageAfterEndTag()
112     {
113         
114         //
115
// TODO: code that determines whether the rest of the page
116
// should be evaluated after the tag is processed
117
// should be placed here.
118
// Called from the doEndTag() method.
119
//
120
return true;
121         
122     }
123     
124     
125     ////////////////////////////////////////////////////////////////
126
/// ///
127
/// Tag Handler interface methods. ///
128
/// ///
129
/// Do not modify these methods; instead, modify the ///
130
/// methods that they call. ///
131
/// ///
132
////////////////////////////////////////////////////////////////
133

134     
135     /**
136      * Dummy javadoc comment to get things started.
137      */

138     public int doStartTag() throws JspException
139     {
140         return this.EVAL_BODY_INCLUDE;
141     }
142     
143     
144     /**
145      * Dummy javadoc comment to get things started.
146      */

147     public int doEndTag() throws JspException
148     {
149         // Dummy body to get things going.
150
return EVAL_PAGE;
151     }
152     
153 }
154
Popular Tags