Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.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.

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

public 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

public 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

public 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

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.