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>
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
Modifier and TypeClassDescription(package private) static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetActions
(InvokationContext<? super SkinAction> context) This method may be called one or several times for each request.getId()
void
setFavicon
(String favicon) void
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
-
Field Details
-
id
-
favicon
-
remapDir
-
-
Constructor Details
-
FixedSkinActionFactory
public FixedSkinActionFactory()Create a new factory instance.
-
-
Method Details
-
getActions
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
-
setId
-
getFavicon
-
setFavicon
-
setImageRemapDir
-
getImageRemapDir
-