Class AbstractJspRendererFactory<A extends Action>
- java.lang.Object
-
- net.sf.basedb.clients.web.extensions.AbstractJspFactory
-
- net.sf.basedb.clients.web.extensions.AbstractJspRendererFactory<A>
-
- All Implemented Interfaces:
DynamicActionAttributes
,RendererFactory<A>
- Direct Known Subclasses:
CompactButtonRendererFactory
,ToolbarButtonRendererFactory
public abstract class AbstractJspRendererFactory<A extends Action> extends AbstractJspFactory implements RendererFactory<A>
An abstract base class for action factories that may need to support adding scripts and stylesheets to the rendered JSP page. Most of this functionality is inherited from theAbstractJspFactory
class.Scripts and stylesheets that has been added to the factory will be propagated to the
JspContext.addScript(String)
andJspContext.addStylesheet(String)
methods in theprepareContext(InvokationContext)
.- Version:
- 2.7
- Author:
- nicklas
- Last modified
- $Date:2008-03-20 12:15:25 +0100 (Thu, 20 Mar 2008) $
-
-
Constructor Summary
Constructors Constructor Description AbstractJspRendererFactory()
Create a new factory instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
prepareContext(InvokationContext<? extends A> context)
If scripts and stylesheets has been added to the factory, propagates those to theJspContext
.-
Methods inherited from class net.sf.basedb.clients.web.extensions.AbstractJspFactory
getDynamicActionAttributes, getParameter, getScripts, getStylesheets, prepareContext, setParameter, setScript, setStylesheet
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.basedb.util.extensions.RendererFactory
getRenderer
-
-
-
-
Method Detail
-
prepareContext
public void prepareContext(InvokationContext<? extends A> context)
If scripts and stylesheets has been added to the factory, propagates those to theJspContext
. A subclass that overrides this method should callsuper.prepareContext()
.- Specified by:
prepareContext
in interfaceRendererFactory<A extends Action>
- Parameters:
context
- The current invokation context
-
-