MemoryStyleSource
, NopStyleSource
public interface StyleSource
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, or
null 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.
|
@Nullable String get(String group, String name)
null
if missing.group
- the groupname
- the style namevoid set(String group, String name, String style)
group
- the groupname
- the style namestyle
- the style to setvoid remove(String group)
group
- the groupvoid remove(String group, String name)
group
- the groupname
- the style name to removevoid clear()
Iterable<String> groups()
Copyright © 2020. All rights reserved.