-
- All Known Implementing Classes:
MemoryStyleSource
,NopStyleSource
public interface StyleSource
Provides the source of style configuration.- Since:
- 3.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
Clear all styles.String
get(String group, String name)
Returns the appropriate style for the given style-group and style-name, ornull
if missing.Iterable<String>
groups()
Returns configured style-group names.void
remove(String group)
Remove all styles for given style-group.void
remove(String group, String name)
Remove a specific style from style-group.void
set(String group, String name, String style)
Set a specific style in a style-group.Map<String,String>
styles(String group)
Returns configured styles for given style-group.
-
-
-
Method Detail
-
get
@Nullable String get(String group, String name)
Returns the appropriate style for the given style-group and style-name, ornull
if missing.- Parameters:
group
- the groupname
- the style name- Returns:
- the style
-
set
void set(String group, String name, String style)
Set a specific style in a style-group.- Parameters:
group
- the groupname
- the style namestyle
- the style to set
-
remove
void remove(String group)
Remove all styles for given style-group.- Parameters:
group
- the group
-
remove
void remove(String group, String name)
Remove a specific style from style-group.- Parameters:
group
- the groupname
- the style name to remove
-
clear
void clear()
Clear all styles.
-
groups
Iterable<String> groups()
Returns configured style-group names.- Returns:
- Immutable collection.
-
-