KickJava   Java API By Example, From Geeks To Geeks.

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


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  *Class that contains definition of the row, capable to add new rows to the table.
13  *After using NewRowColumns tag, new row block appears at the end of rows in the table.
14  */

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

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

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

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

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

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

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

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

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

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

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