org.japano.pagenode
Class Javascript
java.lang.Object
org.japano.PageNode
org.japano.pagenode.Javascript
- All Implemented Interfaces:
- Uncrunchable
public class Javascript
- extends PageNode
- implements Uncrunchable
Inserts a javascript block. If the head attribute is set to
true the javascript body is inserted as last element into
the
section of the HTML page.
- Version:
- $Id: Javascript.java,v 1.8 2005/09/27 21:30:51 fforw Exp $
- Author:
- Sven Helmberger ( sven dot helmberger at gmx dot de )
Methods inherited from class org.japano.PageNode |
findChildren, findParent, findRootNode, generateChildren, getChildren, getContext, getNodeId, getParent, init, recInit, release, setChildren, setContext, setNodeId, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Javascript
public Javascript()
setHead
public void setHead(boolean head)
- if true, the script block will be added to the head section of the document.
isHead
public boolean isHead(boolean head)
setWrappingFunctionName
public void setWrappingFunctionName(java.lang.String wrappingFunctionName)
setInsertScriptBlock
public void setInsertScriptBlock(boolean insertScriptBlock)
generate
public void generate(Buffer out)
- Description copied from class:
PageNode
- Generates this node
The base implementation just calls
PageNode.generateChildren(Buffer)
- Overrides:
generate
in class PageNode