KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > dlog4j > tags > LogsTei


1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 2 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU Library General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15  */

16 package dlog4j.tags;
17
18 import javax.servlet.jsp.tagext.TagData JavaDoc;
19 import javax.servlet.jsp.tagext.TagExtraInfo JavaDoc;
20 import javax.servlet.jsp.tagext.VariableInfo JavaDoc;
21
22 /**
23  * @author Liudong
24  *
25  * To change the template for this generated type comment go to
26  * Window>Preferences>Java>Code Generation>Code and Comments
27  */

28 public class LogsTei extends TagExtraInfo JavaDoc {
29
30     public final static String JavaDoc PAGE_COUNT = "pageCount"; //符合条件的页数
31
public final static String JavaDoc LOG_COUNT = "logCount"; //符合条件的日记数
32
public final static String JavaDoc CUR_PAGE = "curPage"; //当前页数
33
public final static String JavaDoc PER_PAGE = "perPage"; //每页显示日记数
34
public final static String JavaDoc SCREEN_COUNT = "scrCount"; //分页显示的屏数
35
public final static String JavaDoc TIME_STR = "timeString"; //查询日记的显示
36

37     /* (non-Javadoc)
38      * @see javax.servlet.jsp.tagext.TagExtraInfo#getVariableInfo(javax.servlet.jsp.tagext.TagData)
39      */

40     public VariableInfo JavaDoc[] getVariableInfo(TagData JavaDoc data) {
41         return new VariableInfo JavaDoc[] {
42              new VariableInfo JavaDoc(
43                 data.getAttributeString("id"),
44                 "java.util.List",
45                 true,
46                 VariableInfo.AT_BEGIN),
47             new VariableInfo JavaDoc(
48                PAGE_COUNT,
49                "java.lang.Integer",
50                true,
51                VariableInfo.AT_BEGIN),
52             new VariableInfo JavaDoc(
53                LOG_COUNT,
54                "java.lang.Integer",
55                true,
56                VariableInfo.AT_BEGIN),
57             new VariableInfo JavaDoc(
58                CUR_PAGE,
59                "java.lang.Integer",
60                true,
61                VariableInfo.AT_BEGIN),
62             new VariableInfo JavaDoc(
63                PER_PAGE,
64                "java.lang.Integer",
65                true,
66                VariableInfo.AT_BEGIN),
67             new VariableInfo JavaDoc(
68                SCREEN_COUNT,
69                "java.lang.Integer",
70                true,
71                VariableInfo.AT_BEGIN),
72             new VariableInfo JavaDoc(
73                TIME_STR,
74                "java.lang.String",
75                true,
76                VariableInfo.AT_BEGIN)};
77     }
78 }
79
Popular Tags