Class FixedSkinActionFactory
- java.lang.Object
-
- net.sf.basedb.clients.web.extensions.AbstractJspFactory
-
- net.sf.basedb.clients.web.extensions.AbstractJspActionFactory<SkinAction>
-
- net.sf.basedb.clients.web.extensions.skin.FixedSkinActionFactory
-
- All Implemented Interfaces:
DynamicActionAttributes
,ActionFactory<SkinAction>
public class FixedSkinActionFactory extends AbstractJspActionFactory<SkinAction>
A simple action factory implementation that always include the given skin on all pages. It supports dynamic attributes, favicon and image re-mapping. To use image remapping, set the <image-remap-dir> parameter in the configuration file to a path in the /resources dir in the JAR file but without the /resources prefix. For example, if the images to remap are in the /resources/images/remap directory set the parameter to /images/remap.- Since:
- 3.4
- Author:
- nicklas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
FixedSkinActionFactory.MySkinAction
-
Constructor Summary
Constructors Constructor Description FixedSkinActionFactory()
Create a new factory instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SkinAction[]
getActions(InvokationContext<? super SkinAction> context)
This method may be called one or several times for each request.String
getFavicon()
String
getId()
String
getImageRemapDir()
void
setFavicon(String favicon)
void
setId(String id)
void
setImageRemapDir(String remapDir)
-
Methods inherited from class net.sf.basedb.clients.web.extensions.AbstractJspActionFactory
prepareContext
-
Methods inherited from class net.sf.basedb.clients.web.extensions.AbstractJspFactory
getDynamicActionAttributes, getParameter, getScripts, getStylesheets, prepareContext, setParameter, setScript, setStylesheet
-
-
-
-
Method Detail
-
getActions
public SkinAction[] getActions(InvokationContext<? super SkinAction> context)
Description copied from interface:ActionFactory
This method may be called one or several times for each request. This is decided by the extension point. If, for example, the extension point is a pure single-item extension point then this method is probably only called once. If the extension point is a per-item extension point in a list context, then this method may be called once for every item in the list. The context parameter contains all information about the context of the extension point, including the current item, if any.- Parameters:
context
- The current invokation context- Returns:
- Always an array with a single element
-
getId
public String getId()
-
setId
public void setId(String id)
-
getFavicon
public String getFavicon()
-
setFavicon
@PathSetter @VariableSetter public void setFavicon(String favicon)
-
setImageRemapDir
public void setImageRemapDir(String remapDir)
-
getImageRemapDir
public String getImageRemapDir()
-
-