KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > displaytag > render > TableWriterAdapter


1 /**
2  * Licensed under the Artistic License; you may not use this file
3  * except in compliance with the License.
4  * You may obtain a copy of the License at
5  *
6  * http://displaytag.sourceforge.net/license.html
7  *
8  * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
9  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
10  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11  */

12 package org.displaytag.render;
13
14 import org.displaytag.model.Column;
15 import org.displaytag.model.Row;
16 import org.displaytag.model.TableModel;
17
18
19 /**
20  * Convenience abstract adapter for constructing a table view; contains only stub implementations. This class exists as
21  * a convenience for creating table-writer objects. Extend this class to create a table writer and override the methods
22  * of interest. This class also protects subclasses from future additions to TableWriterTemplate they may not be
23  * interested in.
24  * @author Jorge L. Barroso
25  * @version $Id$
26  */

27 public abstract class TableWriterAdapter extends TableWriterTemplate
28 {
29
30     /**
31      * @see org.displaytag.render.TableWriterTemplate#writeEmptyListMessage(java.lang.String)
32      */

33     protected void writeEmptyListMessage(String JavaDoc emptyListMessage) throws Exception JavaDoc
34     {
35     }
36
37     /**
38      * @see org.displaytag.render.TableWriterTemplate#writeTopBanner(org.displaytag.model.TableModel)
39      */

40     protected void writeTopBanner(TableModel model) throws Exception JavaDoc
41     {
42     }
43
44     /**
45      * @see org.displaytag.render.TableWriterTemplate#writeTableOpener(org.displaytag.model.TableModel)
46      */

47     protected void writeTableOpener(TableModel model) throws Exception JavaDoc
48     {
49     }
50
51     /**
52      * @see org.displaytag.render.TableWriterTemplate#writeCaption(org.displaytag.model.TableModel)
53      */

54     protected void writeCaption(TableModel model) throws Exception JavaDoc
55     {
56     }
57
58     /**
59      * @see org.displaytag.render.TableWriterTemplate#writeTableHeader(org.displaytag.model.TableModel)
60      */

61     protected void writeTableHeader(TableModel model) throws Exception JavaDoc
62     {
63     }
64
65     /**
66      * @see org.displaytag.render.TableWriterTemplate#writePreBodyFooter(org.displaytag.model.TableModel)
67      */

68     protected void writePreBodyFooter(TableModel model) throws Exception JavaDoc
69     {
70     }
71
72     /**
73      * @see org.displaytag.render.TableWriterTemplate#writeTableBodyOpener(org.displaytag.model.TableModel)
74      */

75     protected void writeTableBodyOpener(TableModel model) throws Exception JavaDoc
76     {
77     }
78
79     /**
80      * @see org.displaytag.render.TableWriterTemplate#writeTableBodyCloser(org.displaytag.model.TableModel)
81      */

82     protected void writeTableBodyCloser(TableModel model) throws Exception JavaDoc
83     {
84     }
85
86     /**
87      * @see org.displaytag.render.TableWriterTemplate#writePostBodyFooter(org.displaytag.model.TableModel)
88      */

89     protected void writePostBodyFooter(TableModel model) throws Exception JavaDoc
90     {
91     }
92
93     /**
94      * @see org.displaytag.render.TableWriterTemplate#writeTableCloser(org.displaytag.model.TableModel)
95      */

96     protected void writeTableCloser(TableModel model) throws Exception JavaDoc
97     {
98     }
99
100     /**
101      * @see org.displaytag.render.TableWriterTemplate#writeBottomBanner(org.displaytag.model.TableModel)
102      */

103     protected void writeBottomBanner(TableModel model) throws Exception JavaDoc
104     {
105     }
106
107     /**
108      * @see org.displaytag.render.TableWriterTemplate#writeDecoratedTableFinish(org.displaytag.model.TableModel)
109      */

110     protected void writeDecoratedTableFinish(TableModel model) throws Exception JavaDoc
111     {
112     }
113
114     /**
115      * @see org.displaytag.render.TableWriterTemplate#writeDecoratedRowStart(org.displaytag.model.TableModel)
116      */

117     protected void writeDecoratedRowStart(TableModel model) throws Exception JavaDoc
118     {
119     }
120
121     /**
122      * @see org.displaytag.render.TableWriterTemplate#writeRowOpener(org.displaytag.model.Row)
123      */

124     protected void writeRowOpener(Row row) throws Exception JavaDoc
125     {
126     }
127
128     /**
129      * @see org.displaytag.render.TableWriterTemplate#writeColumnOpener(org.displaytag.model.Column)
130      */

131     protected void writeColumnOpener(Column column) throws Exception JavaDoc
132     {
133     }
134
135     /**
136      * @see org.displaytag.render.TableWriterTemplate#writeColumnValue(Object,org.displaytag.model.Column)
137      */

138     protected void writeColumnValue(Object JavaDoc value, Column column) throws Exception JavaDoc
139     {
140     }
141
142     /**
143      * @see org.displaytag.render.TableWriterTemplate#writeColumnCloser(org.displaytag.model.Column)
144      */

145     protected void writeColumnCloser(Column column) throws Exception JavaDoc
146     {
147     }
148
149     /**
150      * @see org.displaytag.render.TableWriterTemplate#writeRowWithNoColumns(java.lang.String)
151      */

152     protected void writeRowWithNoColumns(String JavaDoc string) throws Exception JavaDoc
153     {
154     }
155
156     /**
157      * @see org.displaytag.render.TableWriterTemplate#writeRowCloser(org.displaytag.model.Row)
158      */

159     protected void writeRowCloser(Row row) throws Exception JavaDoc
160     {
161     }
162
163     /**
164      * @see org.displaytag.render.TableWriterTemplate#writeDecoratedRowFinish(org.displaytag.model.TableModel)
165      */

166     protected void writeDecoratedRowFinish(TableModel model) throws Exception JavaDoc
167     {
168     }
169
170     /**
171      * @see org.displaytag.render.TableWriterTemplate#writeEmptyListRowMessage(java.lang.String)
172      */

173     protected void writeEmptyListRowMessage(String JavaDoc message) throws Exception JavaDoc
174     {
175     }
176 }
177
Popular Tags