public interface ThemeStylingService
Registers corresponding contributions to the ThemeService
so that styling of the page is handled as if
styling was provided by the theme definition. Also handles related flavors as theme collections.
Flavor
Modifier and Type | Interface and Description |
---|---|
static class |
ThemeStylingService.PRESET_CATEGORY |
Modifier and Type | Field and Description |
---|---|
static String |
FLAVOR_MARKER |
static String |
PAGE_STYLE_CLASS_NAME_PREFIX |
static String |
PAGE_STYLE_NAME_SUFFIX |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultFlavorName(String themePage)
Returns the default flavor for a given theme page
|
Flavor |
getFlavor(String flavorName)
Returns the flavor for given name, or null if not found.
|
List<String> |
getFlavorNames(String themePage)
Returns the flavor names for a given theme page
|
List<Flavor> |
getFlavors(String themePage)
Returns the flavors for a given theme page
|
Logo |
getLogo(String flavor)
Returns the logo configured for given flavor name, and fallbacks on the extends flavor logo if not set.
|
void |
themeGlobalResourcesRegistered(URL themeUrl)
Hook to notify the service that global resources for a theme need to be registered
|
void |
themeRegistered(String themeName)
Hook to notify the service that a theme has been registered
|
static final String FLAVOR_MARKER
static final String PAGE_STYLE_CLASS_NAME_PREFIX
static final String PAGE_STYLE_NAME_SUFFIX
String getDefaultFlavorName(String themePage)
List<String> getFlavorNames(String themePage)
Flavor getFlavor(String flavorName)
If not defined on the local flavor, flavor attributes will be resolved from the extended flavor if any (except
presets that just need to be resolved at registration to the ThemeService
.
flavorName
- Logo getLogo(String flavor)
flavor
- void themeRegistered(String themeName)
themeName
- void themeGlobalResourcesRegistered(URL themeUrl)
themeUrl
- Copyright © 2015 Nuxeo SA. All rights reserved.