org.japano.pagenode
Class Javascript

java.lang.Object
  extended by org.japano.PageNode
      extended by 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 $ SourceForge.net Logo
Author:
Sven Helmberger ( sven dot helmberger at gmx dot de )

Nested Class Summary
 
Nested classes/interfaces inherited from class org.japano.PageNode
PageNode.Output
 
Field Summary
 
Fields inherited from class org.japano.PageNode
children, context, EMPTY, nodeId, parent
 
Constructor Summary
Javascript()
           
 
Method Summary
 void generate(Buffer out)
          Generates this node The base implementation just calls PageNode.generateChildren(Buffer)
 boolean isHead(boolean head)
           
 void setHead(boolean head)
          if true, the script block will be added to the head section of the document.
 void setInsertScriptBlock(boolean insertScriptBlock)
           
 void setWrappingFunctionName(java.lang.String wrappingFunctionName)
           
 
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
 

Constructor Detail

Javascript

public Javascript()
Method Detail

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