public interface AbstractTheme extends Serializable
Modifier and Type | Method and Description |
---|---|
String |
getBaseUrl()
The url for the base component implementation.
|
default Map<String,String> |
getBodyAttributes(String variant)
Deprecated.
use
getHtmlAttributes(String) instead |
default List<String> |
getHeaderInlineContents()
Return a list of contents to inline to the bootstrap header.
|
default Map<String,String> |
getHtmlAttributes(String variant)
Gets the attributes that should be set on the
<html> element when
the Theme variant is applied. |
String |
getThemeUrl()
The url for the components themed version implementation.
|
default String |
translateUrl(String url)
Translates the given
url using the result of the
getThemeUrl() theme method. |
String getBaseUrl()
e.g. src/
String getThemeUrl()
e.g. theme/lumo/
default List<String> getHeaderInlineContents()
This will usually be the any <custom-style>
declarations, see
CustomStyle
For importing theme files, use
HtmlImport
on the
corresponding theme subclass.
@Deprecated default Map<String,String> getBodyAttributes(String variant)
getHtmlAttributes(String)
instead<body>
element when
the Theme variant is applied.variant
- the variant defined in the Theme
annotation, not
null
default Map<String,String> getHtmlAttributes(String variant)
<html>
element when
the Theme variant is applied.variant
- the variant defined in the Theme
annotation, not
null
default String translateUrl(String url)
url
using the result of the
getThemeUrl()
theme method.
If translation is possible then translated URL is returned. Otherwise the
url
is returned.
url
- the URL to translate using the themeurl
if not.Copyright © 2025. All rights reserved.