org.apache.myfaces.trinidadinternal.style
Interface StyleProvider

All Known Implementing Classes:
FileSystemStyleCache, SkinStyleProvider

public interface StyleProvider

The StyleProvider API is used to access context-dependent style information. Style information is exposed in two ways - as CSS style sheet URIs (via getStyleSheetURI()), or as Style objects (via getStyleMap()). Both methods take a StyleContext object, which describes the target end user environment.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/style/StyleProvider.java#0 $) $Date: 10-nov-2005.18:57:58 $
Author:
The Oracle ADF Faces Team
See Also:
StyleContext, StyleMap, Style

Method Summary
 java.lang.String getContentStyleType(StyleContext context)
          Returns the mime type (for example, "text/css") of the styles defined by the StyleProvider.
 java.util.Map<java.lang.String,java.lang.String> getShortStyleClasses(StyleContext context)
          Returns a Map which maps style class names to equivalent shorter names.
 StyleMap getStyleMap(StyleContext context)
          Returns a StyleMap object, which can be used to retreive Style objects for the specified context.
 java.lang.String getStyleSheetURI(StyleContext context)
          Returns the URI of the CSS style sheet to use for the end user environment specified via the StyleContext.
 

Method Detail

getContentStyleType

java.lang.String getContentStyleType(StyleContext context)
Returns the mime type (for example, "text/css") of the styles defined by the StyleProvider.


getShortStyleClasses

java.util.Map<java.lang.String,java.lang.String> getShortStyleClasses(StyleContext context)
Returns a Map which maps style class names to equivalent shorter names.

Parameters:
context - The StyleContext
Returns:
A Map which maps the full style class names to the shorter equivalents.

getStyleSheetURI

java.lang.String getStyleSheetURI(StyleContext context)
Returns the URI of the CSS style sheet to use for the end user environment specified via the StyleContext.

Parameters:
context - The context which describes the end user environment for this request
Returns:
A CSS style sheet URI

getStyleMap

StyleMap getStyleMap(StyleContext context)
Returns a StyleMap object, which can be used to retreive Style objects for the specified context.

Parameters:
context - The context which describes the target end user environment
Returns:
A StyleMap object which exposes the Styles for the specified context.


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.