org.japano.pagenode
Class Part

java.lang.Object
  extended by org.japano.PageNode
      extended by org.japano.pagenode.Part
Direct Known Subclasses:
FormNode

public class Part
extends PageNode

Registers a part of the document for being used with scripted partial updates.

Version:
$Id: Part.java,v 1.13 2005/10/04 02:21:11 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
static java.lang.String PARAMETER_NAME
           
protected  java.lang.String partId
           
 
Fields inherited from class org.japano.PageNode
children, context, EMPTY, nodeId, parent
 
Constructor Summary
Part()
           
 
Method Summary
 void generate(Buffer out)
          Generates this node The base implementation just calls PageNode.generateChildren(Buffer)
 java.lang.String getContentType()
           
 java.lang.String getId()
           
 void init()
          Initializes the node.
 void setClass(java.lang.String _class)
          Sets the class for the div tag.
 void setContentType(java.lang.String contentType)
          The content type with which the part will be served.
 void setId(java.lang.String id)
          Sets the unique id under which the part will be registered in the page.
 void setStyle(java.lang.String style)
          Sets the style for the div tag.
 
Methods inherited from class org.japano.PageNode
findChildren, findParent, findRootNode, generateChildren, getChildren, getContext, getNodeId, getParent, recInit, release, setChildren, setContext, setNodeId, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAMETER_NAME

public static final java.lang.String PARAMETER_NAME
See Also:
Constant Field Values

partId

protected java.lang.String partId
Constructor Detail

Part

public Part()
Method Detail

setId

public void setId(java.lang.String id)
Sets the unique id under which the part will be registered in the page.


getId

public java.lang.String getId()

setStyle

public void setStyle(java.lang.String style)
Sets the style for the div tag.


setClass

public void setClass(java.lang.String _class)
Sets the class for the div tag.


setContentType

public void setContentType(java.lang.String contentType)
The content type with which the part will be served.


getContentType

public java.lang.String getContentType()

init

public void init()
Description copied from class: PageNode
Initializes the node. The init method is called after all nodes of the page are constructed, linked and configured.

Overrides:
init in class PageNode

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