org.ultrawork.wtk.mc
Class Block

java.lang.Object
  |
  +--org.ultrawork.wtk.mc.Block
All Implemented Interfaces:
Component

public class Block
extends java.lang.Object
implements Component

A component representing a fragment of markup dynamically build using a JSP or a Servlet.

Version:
0.2
Author:
Nicolas Bonvin

Field Summary
private  java.lang.String path
           
 
Fields inherited from interface org.ultrawork.wtk.mc.Component
LOCALE_KEY
 
Constructor Summary
Block()
           
Block(java.lang.String path)
           
 
Method Summary
 java.lang.String getPath()
          Gets the path
 void setPath(java.lang.String path)
          Sets the path
 java.lang.String toString()
           
 void write(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Writes the component to the http response.
 void write(javax.servlet.jsp.PageContext pageContext)
          Writes the component to the current page.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

path

private java.lang.String path
Constructor Detail

Block

public Block()

Block

public Block(java.lang.String path)
Method Detail

getPath

public java.lang.String getPath()
Gets the path
Returns:
Returns a String

setPath

public void setPath(java.lang.String path)
Sets the path
Parameters:
path - The path to set

toString

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

write

public void write(javax.servlet.jsp.PageContext pageContext)
           throws java.io.IOException,
                  javax.servlet.ServletException
Description copied from interface: Component
Writes the component to the current page.
Specified by:
write in interface Component
See Also:
Component.write(PageContext)

write

public void write(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws java.io.IOException,
                  javax.servlet.ServletException
Description copied from interface: Component
Writes the component to the http response.
Specified by:
write in interface Component


Copyright 2002 - ultrawork