Source Code Cross Referenced for HTMLPage.java in  » Web-Framework » SiteMesh » com » opensymphony » module » sitemesh » 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 » Web Framework » SiteMesh » com.opensymphony.module.sitemesh 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Title:        HTMLPage
003:         * Description:
004:         *
005:         * This software is published under the terms of the OpenSymphony Software
006:         * License version 1.1, of which a copy has been included with this
007:         * distribution in the LICENSE.txt file.
008:         */
009:
010:        package com.opensymphony.module.sitemesh;
011:
012:        import java.io.IOException;
013:        import java.io.Writer;
014:
015:        /**
016:         * Extension of {@link com.opensymphony.module.sitemesh.Page} providing access to HTML data.
017:         *
018:         * <p>The page is parsed and the <code>&lt;title&gt;</code>, <code>&lt;head&gt;</code>
019:         * (minus the <code>&lt;title&gt;</code>) and <code>&lt;body&gt;</code> are split
020:         * into chunks. These can then be used by a {@link com.opensymphony.module.sitemesh.Decorator}.
021:         * Properties are also extracted from the HTML.</p>
022:         *
023:         * <h2>Page Properties</h2>
024:         *
025:         * <p>When the page is parsed, values from certain tags are added to the properties
026:         * to allow easy access to them. The following tags have properties extracted from them.</p>
027:         *
028:         * <ul>
029:         *   <li>
030:         *     <b>HTML Tag</b><br>
031:         *     All attributes of the <code>&lt;html&gt;</code>
032:         *     tag shall be added as properties.
033:         *   </li>
034:         *   <li>
035:         *     <b>TITLE Tag</b><br>
036:         *     The contents of the <code>&lt;title&gt;</code> tag
037:         *     shall be added as the <code>title</code> property.
038:         *   </li>
039:         *   <li>
040:         *     <b>META Tags</b><br>
041:         *     All the <code>&lt;meta&gt;</code> tags with
042:         *     <code>name</code> and <code>content</code> attributes
043:         *     will be added with the <code>meta</code> prefix.
044:         *   </li>
045:         *   <li>
046:         *     <b>BODY Tag</b><br>
047:         *     All attributes of the <code>&lt;body&gt;</code> tag
048:         *     shall be added as properties with the
049:         *     <code>body</code> prefix.
050:         *   </li>
051:         * </ul>
052:         * <h4>Example</h4>
053:         * <pre>
054:         *   <xmp>
055:         *     <html template="funky">
056:         *       <head>
057:         *         <title>My Funky Page</title>
058:         *         <meta name="description" content="Description of my page.">
059:         *         <meta name="author" content="Bob">
060:         *         ...
061:         *       </head>
062:         *       <body text="#ff00ff" bgcolor="green">
063:         *         ...
064:         *       </body>
065:         *     </html>
066:         *   </xmp>
067:         * template=funky
068:         * title=My Funky Page
069:         * meta.description=Description of my page.
070:         * meta.author=Bob
071:         * body.text=#ff00ff
072:         * body.bgcolor=green
073:         * </pre>
074:         *
075:         * @author <a href="mailto:joe@truemesh.com">Joe Walnes</a>
076:         * @version $Revision: 1.3 $
077:         */
078:        public interface HTMLPage extends Page {
079:
080:            /**
081:             * Write the contents of the <code>&lt;head&gt;</code> tag.
082:             */
083:            void writeHead(Writer out) throws IOException;
084:
085:            /**
086:             * Convenience method to return the contents of the <code>&lt;head&gt;</code> tag as a String.
087:             *
088:             * @since 2.1.1
089:             * @see #writeHead(java.io.Writer) 
090:             */
091:            String getHead();
092:
093:            /**
094:             * Check to see if this page contains an
095:             * <a href="http://www.w3.org/TR/html4/present/frames.html">HTML frameset</a>.
096:             */
097:            boolean isFrameSet();
098:
099:            /**
100:             * Marks this page as a frameset.
101:             *
102:             * @since 2.3
103:             * @see #isFrameSet()
104:             */
105:            void setFrameSet(boolean frameset);
106:
107:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.