Class FixedSkinActionFactory.MySkinAction
- java.lang.Object
-
- net.sf.basedb.clients.web.extensions.skin.FixedSkinActionFactory.MySkinAction
-
- All Implemented Interfaces:
DynamicActionAttributes
,SkinAction
,Action
- Enclosing class:
- FixedSkinActionFactory
static class FixedSkinActionFactory.MySkinAction extends Object implements SkinAction, DynamicActionAttributes
-
-
Field Summary
Fields Modifier and Type Field Description private FixedSkinActionFactory
factory
private String
xtId
-
Constructor Summary
Constructors Constructor Description MySkinAction(FixedSkinActionFactory factory, String xtId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<DynamicActionAttribute>
getDynamicActionAttributes()
Get an iterator that return all dynamic attributes.String
getFavicon()
Get the full path to a favicon for the BASE site.String
getId()
Get the ID of the extension.void
remapImages(ImageRemapper mapper)
Remap images to another location.
-
-
-
Field Detail
-
factory
private final FixedSkinActionFactory factory
-
xtId
private final String xtId
-
-
Constructor Detail
-
MySkinAction
MySkinAction(FixedSkinActionFactory factory, String xtId)
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:SkinAction
Get the ID of the extension. Optional, but required to generate a <div> tag with dynamic attributes (if the actions implements theDynamicActionAttributes
interface).- Specified by:
getId
in interfaceSkinAction
-
getFavicon
public String getFavicon()
Description copied from interface:SkinAction
Get the full path to a favicon for the BASE site.- Specified by:
getFavicon
in interfaceSkinAction
-
remapImages
public void remapImages(ImageRemapper mapper)
Description copied from interface:SkinAction
Remap images to another location. UseImageRemapper.map(String, String)
to re-map an image from a source location to a destination location. Note that this method is not called on every use of the skin, but only after something has changed due to installation/uninstallation or enabling/disabled skins. The re-mapped images are then cached.- Specified by:
remapImages
in interfaceSkinAction
-
getDynamicActionAttributes
public Iterator<DynamicActionAttribute> getDynamicActionAttributes()
Description copied from interface:DynamicActionAttributes
Get an iterator that return all dynamic attributes. If no dynamic attributes have been defined, the method may return null or an iterator that doesn't return any elements.- Specified by:
getDynamicActionAttributes
in interfaceDynamicActionAttributes
- Returns:
- An iterator or null
-
-