|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidadinternal.style.cache.FileSystemStyleCache
org.apache.myfaces.trinidadinternal.skin.SkinStyleProvider
public class SkinStyleProvider
An extension of the FileSystemStyleCache which defers to a Skin for loading the StyleSheetDocument.
| Constructor Summary | |
|---|---|
protected |
SkinStyleProvider(org.apache.myfaces.trinidad.skin.Skin skin,
java.lang.String targetDirectoryPath)
Creates SkinStyleProvider instance. |
| Method Summary | |
|---|---|
protected StyleSheetDocument |
createStyleSheetDocument(StyleContext context)
Override of FileSystemStyleCache.createStyleSheetDocument(). |
static StyleProvider |
getSkinStyleProvider(org.apache.myfaces.trinidad.skin.Skin skin,
java.lang.String targetDirectoryPath)
Returns a shared instance of the SkinStyleProvider. |
protected java.lang.String |
getTargetStyleSheetName(StyleContext context,
StyleSheetDocument document)
Override of FileSystemStyleCache.getTargetStyleSheetName(). |
protected boolean |
hasSourceDocumentChanged(StyleContext context)
Override of FileSystemStyleCache.hasSourceDocumentChanged() which checks for changes to the Skin's style sheet. |
| Methods inherited from class org.apache.myfaces.trinidadinternal.style.cache.FileSystemStyleCache |
|---|
_convertStyleNodeToStyle, getContentStyleType, getIcons, getShortStyleClasses, getSkinProperties, getStyles, getStyleSheetURIs |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SkinStyleProvider(org.apache.myfaces.trinidad.skin.Skin skin,
java.lang.String targetDirectoryPath)
throws java.lang.IllegalArgumentException
skin - The Skin which defines the
look and feel-specific style information for this
StyleProvider.targetDirectoryPath - The full file system path
to the directory where generated CSS files will be
stored.
java.lang.IllegalArgumentException - This exception is thrown
if no Skin is null, or if either of the
paths are invalid.SkinStyleProvider(org.apache.myfaces.trinidad.skin.Skin, java.lang.String)| Method Detail |
|---|
public static StyleProvider getSkinStyleProvider(org.apache.myfaces.trinidad.skin.Skin skin,
java.lang.String targetDirectoryPath)
throws java.lang.IllegalArgumentException
context - The current RenderingContext, which provides
access to the current Skin.targetDirectoryPath - The full file system path of the
directory where generated CSS files are stored.
If the directory does not exist and cannot be
created, an IllegalArgumentException is thrown.
java.lang.IllegalArgumentException - This exception is thrown
if no Skin is found, or if either of the
paths are invalid.protected StyleSheetDocument createStyleSheetDocument(StyleContext context)
createStyleSheetDocument in class FileSystemStyleCachecontext - The StyleContext
(not needed here, but is needed in subclass)
org.apache.myfaces.trinidadinternal.skin.SkinStyleProvider#createStyleSheetDocument(context)protected boolean hasSourceDocumentChanged(StyleContext context)
hasSourceDocumentChanged in class FileSystemStyleCache
protected java.lang.String getTargetStyleSheetName(StyleContext context,
StyleSheetDocument document)
getTargetStyleSheetName in class FileSystemStyleCachecontext - The StyleContextdocument - The StyleSheetDocument which provides the styles
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||