-
- All Known Implementing Classes:
MemoryStyleSource,NopStyleSource
public interface StyleSourceProvides the source of style configuration.- Since:
- 3.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Clear all styles.Stringget(String group, String name)Returns the appropriate style for the given style-group and style-name, ornullif missing.Iterable<String>groups()Returns configured style-group names.voidremove(String group)Remove all styles for given style-group.voidremove(String group, String name)Remove a specific style from style-group.voidset(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, ornullif 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.
-
-