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
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