Class AbstractHTMLPage
java.lang.Object
com.opensymphony.module.sitemesh.parser.AbstractPage
com.opensymphony.module.sitemesh.parser.AbstractHTMLPage
- Direct Known Subclasses:
FastPage,TokenizedHTMLPage
Abstract implementation of
HTMLPage.
Adds to AbstractPage some HTML methods. To implement, follow
guidelines of super-class, and implement the 2 abstract methods states below.
- Author:
- Joe Walnes
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractHTMLPage(SitemeshBuffer sitemeshBuffer) Instantiates a new abstract HTML page. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck to see if this page contains an HTML frameset.voidsetFrameSet(boolean frameset) Marks this page as a frameset.abstract voidWrite data of html<head>tag.Methods inherited from class com.opensymphony.module.sitemesh.parser.AbstractPage
addProperty, getBody, getBooleanProperty, getIntProperty, getLongProperty, getPage, getProperties, getProperty, getPropertyKeys, getRequest, getTitle, isPropertySet, noNull, setRequest, writeBody, writePageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.opensymphony.module.sitemesh.Page
addProperty, getBody, getBooleanProperty, getIntProperty, getLongProperty, getPage, getProperties, getProperty, getPropertyKeys, getRequest, getTitle, isPropertySet, setRequest, writeBody, writePage
-
Constructor Details
-
AbstractHTMLPage
Instantiates a new abstract HTML page.- Parameters:
sitemeshBuffer- the sitemesh buffer
-
-
Method Details
-
writeHead
Write data of html<head>tag.Must be implemented. Data written should not actually contain the head tags, but all the data in between.
- Specified by:
writeHeadin interfaceHTMLPage- Parameters:
out- the out- Throws:
IOException- Signals that an I/O exception has occurred.
-
isFrameSet
public boolean isFrameSet()Description copied from interface:HTMLPageCheck to see if this page contains an HTML frameset.- Specified by:
isFrameSetin interfaceHTMLPage- Returns:
- true, if is frame set
-
setFrameSet
public void setFrameSet(boolean frameset) Description copied from interface:HTMLPageMarks this page as a frameset.- Specified by:
setFrameSetin interfaceHTMLPage- Parameters:
frameset- the new frame set- See Also:
-