Source Code Cross Referenced for RepeaterFooter.java in  » Library » Apache-beehive-1.0.2-src » org » apache » beehive » netui » tags » databinding » repeater » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Library » Apache beehive 1.0.2 src » org.apache.beehive.netui.tags.databinding.repeater 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Licensed to the Apache Software Foundation (ASF) under one or more
003:         * contributor license agreements.  See the NOTICE file distributed with
004:         * this work for additional information regarding copyright ownership.
005:         * The ASF licenses this file to You under the Apache License, Version 2.0
006:         * (the "License"); you may not use this file except in compliance with
007:         * the License.  You may obtain a copy of the License at
008:         * 
009:         *     http://www.apache.org/licenses/LICENSE-2.0
010:         * 
011:         * Unless required by applicable law or agreed to in writing, software
012:         * distributed under the License is distributed on an "AS IS" BASIS,
013:         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014:         * See the License for the specific language governing permissions and
015:         * limitations under the License.
016:         *
017:         * $Header:$
018:         */
019:        package org.apache.beehive.netui.tags.databinding.repeater;
020:
021:        /**
022:         * <p>
023:         * Renders the footer of a {@link Repeater} tag.  This header may contain any HTML markup that can
024:         * be rendered to a page.  In the case of closing a table, ordered list, or unordered list, the elements
025:         * &lt;/table&gt;, &lt;/ol&gt;, and &lt;/ul&gt; could respectively be rendered inside the body of
026:         * the &lt;netui-data:repeaterFooter> tag.
027:         * </p>
028:         * <p>
029:         * There is no data item present at the time that the &lt;netui-data:repeaterFooter> renders
030:         * (because the iteration of the &lt;netui-data:repeater> tag has ended), so tags in the body can not
031:         * reference the <code>${container...}</code> JSP EL implicit object to access the current item in
032:         * the data set, though other databinding contexts are available.
033:         * </p>
034:         * <p>
035:         * The header tag is rendered exactly once at the end of repeater rendering.
036:         * </p>
037:         * <p>
038:         * For example, the following sample renders the data set as an HTML table.  The table has two columns,
039:         * "index" and "name", and each iteration over the data set is rendered a row of the table.  The
040:         * &lt;netui-data:repeaterFooter> tag renders once, after the iteration is complete.  It renders a
041:         * closing HTML table tag.
042:         * <br/>
043:         * <pre>
044:         *    &lt;netui-data:repeater dataSource="pageFlow.myDataSet">
045:         *        &lt;netui-data:repeaterHeader>
046:         *            &lt;table border="1">
047:         *                &lt;tr>
048:         *                    &lt;td>&lt;b>index&lt;/b>&lt;/td>
049:         *                    &lt;td>&lt;b>name&lt;/b>&lt;/td>
050:         *                &lt;/tr>
051:         *        &lt;/netui-data:repeaterHeader>
052:         *        &lt;netui-data:repeaterItem>
053:         *            &lt;tr>
054:         *                &lt;td>
055:         *                    &lt;netui:span value="${container.index}" />
056:         *                &lt;/td>
057:         *                &lt;td>
058:         *                    &lt;netui:span value="${container.item}" />
059:         *                &lt;/td>
060:         *            &lt;/tr>
061:         *        &lt;/netui-data:repeaterItem>
062:         *        <b>&lt;netui-data:repeaterFooter></b>
063:         *            &lt;/table>
064:         *        <b>&lt;/netui-data:repeaterFooter></b>
065:         *    &lt;/netui-data:repeater>
066:         * </pre>
067:         * </p>
068:         *
069:         * @jsptagref.tagdescription
070:         * <p>
071:         * Renders the footer of a {@link Repeater} tag.  This header may contain any HTML markup that can
072:         * be rendered to a page.  In the case of closing a table, ordered list, or unordered list, the elements
073:         * &lt;/table&gt;, &lt;/ol&gt;, and &lt;/ul&gt; could respectively be rendered inside the body of
074:         * the &lt;netui-data:repeaterFooter> tag.
075:         * </p>
076:         * <p>
077:         * There is no data item present at the time that the &lt;netui-data:repeaterFooter> renders
078:         * (because the iteration of the &lt;netui-data:repeater> tag has ended), so tags in the body can not
079:         * reference the <code>${container...}</code> JSP EL implicit object to access the current item in
080:         * the data set, though other databinding contexts are available.
081:         * </p>
082:         * <p>
083:         * The header tag is rendered exactly once at the end of repeater rendering.
084:         * </p>
085:         * @example
086:         * <p>
087:         * For example, the following sample renders the data set as an HTML table.  The table has two columns,
088:         * "index" and "name", and each iteration over the data set is rendered a row of the table.  The
089:         * &lt;netui-data:repeaterFooter> tag renders once, after the iteration is complete.  It renders a
090:         * closing HTML table tag.
091:         * <br/>
092:         * <pre>
093:         *    &lt;netui-data:repeater dataSource="pageFlow.myDataSet">
094:         *        &lt;netui-data:repeaterHeader>
095:         *            &lt;table border="1">
096:         *                &lt;tr>
097:         *                    &lt;td>&lt;b>index&lt;/b>&lt;/td>
098:         *                    &lt;td>&lt;b>name&lt;/b>&lt;/td>
099:         *                &lt;/tr>
100:         *        &lt;/netui-data:repeaterHeader>
101:         *        &lt;netui-data:repeaterItem>
102:         *            &lt;tr>
103:         *                &lt;td>
104:         *                    &lt;netui:span value="${container.index}" />
105:         *                &lt;/td>
106:         *                &lt;td>
107:         *                    &lt;netui:span value="${container.item}" />
108:         *                &lt;/td>
109:         *            &lt;/tr>
110:         *        &lt;/netui-data:repeaterItem>
111:         *        <b>&lt;netui-data:repeaterFooter></b>
112:         *            &lt;/table>
113:         *        <b>&lt;/netui-data:repeaterFooter></b>
114:         *    &lt;/netui-data:repeater>
115:         * </pre>
116:         * </p>
117:         *
118:         * @netui:tag name="repeaterFooter" description="Render the footer of a repeater tag."
119:         */
120:        public class RepeaterFooter extends RepeaterComponent {
121:
122:            /**
123:             * Get the name of this tag.  This is used to identify the type of this tag
124:             * for reporting tag errors.
125:             *
126:             * @return a constant String representing the name of this tag.
127:             */
128:            public String getTagName() {
129:                return "RepeaterFooter";
130:            }
131:
132:            public boolean shouldRender() {
133:                return getRepeater().getRenderState() == Repeater.FOOTER;
134:            }
135:        }
w__w___w_._jav_a___2_s._c___o_m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.