2.17.2: 2011-06-17

net.sf.basedb.clients.web.extensions
Class AbstractJspActionFactory<A extends Action>

java.lang.Object
  extended by net.sf.basedb.clients.web.extensions.AbstractJspFactory
      extended by net.sf.basedb.clients.web.extensions.AbstractJspActionFactory<A>
All Implemented Interfaces:
ActionFactory<A>
Direct Known Subclasses:
DebugOnSaveActionFactory, FixedButtonFactory, FixedMenuItemFactory, FixedTabFactory, IncludeContentTabFactory, MAPlotFactory, PermissionButtonFactory, PermissionMenuItemFactory

public abstract class AbstractJspActionFactory<A extends Action>
extends AbstractJspFactory
implements ActionFactory<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 the AbstractJspFactory class.

Scripts and stylesheets that has been added to the factory will be propagated to the JspContext.addScript(String) and JspContext.addStylesheet(String) methods in the prepareContext(InvokationContext).

Version:
2.7
Author:
nicklas
Last modified
$Date:2008-03-20 12:15:25 +0100 (Thu, 20 Mar 2008) $

Constructor Summary
AbstractJspActionFactory()
          Create a new factory instance.
 
Method Summary
 boolean prepareContext(InvokationContext<? super A> context)
          If scripts and stylesheets has been added to the factory, propagates those to the JspContext.
 
Methods inherited from class net.sf.basedb.clients.web.extensions.AbstractJspFactory
getScripts, getStylesheets, prepareContext, 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.ActionFactory
getActions
 

Constructor Detail

AbstractJspActionFactory

public AbstractJspActionFactory()
Create a new factory instance.

Method Detail

prepareContext

public boolean prepareContext(InvokationContext<? super A> context)
If scripts and stylesheets has been added to the factory, propagates those to the JspContext. A subclass that overrides this method should call super.prepareContext() if it hasn't decided to return FALSE already.

Specified by:
prepareContext in interface ActionFactory<A extends Action>
Parameters:
context - The current invokation context
Returns:
Always TRUE

2.17.2: 2011-06-17