KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > module > sitemesh > parser > AbstractHTMLPage


1 /*
2  * Title: AbstractHTMLPage
3  * Description:
4  *
5  * This software is published under the terms of the OpenSymphony Software
6  * License version 1.1, of which a copy has been included with this
7  * distribution in the LICENSE.txt file.
8  */

9
10 package com.opensymphony.module.sitemesh.parser;
11
12 import com.opensymphony.module.sitemesh.HTMLPage;
13
14 import java.io.IOException JavaDoc;
15 import java.io.Writer JavaDoc;
16
17 /**
18  * Abstract implementation of {@link com.opensymphony.module.sitemesh.HTMLPage}.
19  *
20  * <p>Adds to {@link com.opensymphony.module.sitemesh.parser.AbstractPage} some HTML methods.
21  * To implement, follow guidelines of super-class, and implement the 2
22  * abstract methods states below.</p>
23  *
24  * @author <a HREF="joe@truemesh.com">Joe Walnes</a>
25  * @version $Revision: 1.3 $
26  *
27  * @see com.opensymphony.module.sitemesh.parser.AbstractPage
28  * @see com.opensymphony.module.sitemesh.HTMLPage
29  */

30 public abstract class AbstractHTMLPage extends AbstractPage implements HTMLPage {
31
32     private boolean frameSet;
33
34     /**
35      * Write data of html <code>&lt;head&gt;</code> tag.
36      *
37      * <p>Must be implemented. Data written should not actually contain the
38      * head tags, but all the data in between.
39      */

40     public abstract void writeHead(Writer JavaDoc out) throws IOException JavaDoc;
41
42     public boolean isFrameSet() {
43         return frameSet;
44     }
45
46     public void setFrameSet(boolean frameset) {
47         this.frameSet = frameset;
48     }
49 }
Popular Tags