org.apache.myfaces.trinidadinternal.style
Interface StyleMap


public interface StyleMap

The StyleMap is a type-safe map interface for obtaining Style objects based on a style selector. Context-specific Style maps can be obtained via the StyleProvider interface.

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

Method Summary
 Style getStyleByClass(StyleContext context, java.lang.String styleClass)
          Returns the Style object associated with the specified style class
 Style getStyleByName(StyleContext context, java.lang.String name)
          Returns the Style object associated with the specified style name
 Style getStyleBySelector(StyleContext context, java.lang.String selector)
          Returns the Style object associated with the specified selector
 

Method Detail

getStyleBySelector

Style getStyleBySelector(StyleContext context,
                         java.lang.String selector)
Returns the Style object associated with the specified selector

Parameters:
context - The StyleContext to use when looking up the name. This should be the same StyleContext instance that is used to obtain the StyleMap from the StyleProvider.
selector - The CSS selector string for the desired Style

getStyleByClass

Style getStyleByClass(StyleContext context,
                      java.lang.String styleClass)
Returns the Style object associated with the specified style class

Parameters:
context - The StyleContext to use when looking up the name. This should be the same StyleContext instance that is used to obtain the StyleMap from the StyleProvider.
styleClass - the CSS style class for the desired style

getStyleByName

Style getStyleByName(StyleContext context,
                     java.lang.String name)
Returns the Style object associated with the specified style name

Parameters:
context - The StyleContext to use when looking up the name. This should be the same StyleContext instance that is used to obtain the StyleMap from the StyleProvider.
name - the name for the desired style


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