|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.infodesire.infobit.render.velocity.VelocityRenderer
base class for all velocity rendering. we handle general configuration here. implementing classes shall provide case specific rendering
| Constructor Summary | |
VelocityRenderer()
Constructor for the VelocityRenderer object |
|
| Method Summary | |
InfobitManager |
getManager()
Gets the Manager attribute of the VelocityRenderer object |
void |
init(java.util.Properties properties)
initialize renderer with supplied properties |
void |
render(java.lang.String name,
java.io.Writer writer,
java.util.Map parameters)
entry point for infobit rendering |
abstract void |
renderContent(java.io.Writer writer,
Content content)
render infobit content in appropriate way |
void |
setManager(InfobitManager manager)
Sets the Manager attribute of the VelocityRenderer object |
abstract void |
setupContext(org.apache.velocity.context.Context context,
java.lang.String infobitName)
setup context for rendering of certain infobit |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VelocityRenderer()
| Method Detail |
public InfobitManager getManager()
getManager in interface InfobitRendererpublic void setManager(InfobitManager manager)
setManager in interface InfobitRenderermanager - The new Manager value
public abstract void setupContext(org.apache.velocity.context.Context context,
java.lang.String infobitName)
context - Description of ParameterinfobitName - Description of Parameter
public void render(java.lang.String name,
java.io.Writer writer,
java.util.Map parameters)
throws java.lang.Exception
render in interface InfobitRendererwriter - sink for rendered infobit dataname - name of infobit in questionparameters - parameter map - wil lbe used to rig up velocity
context.
java.lang.Exception - could be thrown if something wrong happens.
public abstract void renderContent(java.io.Writer writer,
Content content)
writer - Description of Parametercontent - Description of Parameterpublic void init(java.util.Properties properties)
init in interface InfobitRendererproperties - Description of Parameter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||