org.ofbiz.webapp.region
Class Section

java.lang.Object
  extended by org.ofbiz.webapp.region.Content
      extended by org.ofbiz.webapp.region.Section
All Implemented Interfaces:
java.io.Serializable

public class Section
extends Content

A section is content with a name that implements Content.render.

That method renders content either by including it or by printing it directly, depending upon the direct value passed to the Section constructor.

Note that a section's content can also be a region;if so, Region.render is called from Section.Render().

See Also:
Serialized Form

Field Summary
protected  java.lang.String info
           
static java.lang.String module
           
protected  java.lang.String name
           
protected  RegionManager regionManager
           
 
Fields inherited from class org.ofbiz.webapp.region.Content
content, type
 
Constructor Summary
Section(java.lang.String name, java.lang.String info, java.lang.String content, java.lang.String type, RegionManager regionManager)
           
 
Method Summary
 java.lang.String getName()
           
 void render(HttpServletRequest request, HttpServletResponse response)
           
 void render(PageContext pageContext)
           
 java.lang.String toString()
           
protected  void viewHandlerRender(java.lang.String typeToUse, HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class org.ofbiz.webapp.region.Content
getContent, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected final java.lang.String name

info

protected final java.lang.String info

regionManager

protected RegionManager regionManager

module

public static final java.lang.String module
Constructor Detail

Section

public Section(java.lang.String name,
               java.lang.String info,
               java.lang.String content,
               java.lang.String type,
               RegionManager regionManager)
Method Detail

getName

public java.lang.String getName()

render

public void render(PageContext pageContext)
            throws JspException
Throws:
JspException

render

public void render(HttpServletRequest request,
                   HttpServletResponse response)
            throws java.io.IOException,
                   ServletException
Throws:
java.io.IOException
ServletException

viewHandlerRender

protected void viewHandlerRender(java.lang.String typeToUse,
                                 HttpServletRequest request,
                                 HttpServletResponse response)
                          throws ServletException
Throws:
ServletException

toString

public java.lang.String toString()
Overrides:
toString in class Content