@HtmlImport(value="frontend://bower_components/vaadin-material-styles/color.html") @HtmlImport(value="frontend://bower_components/vaadin-material-styles/typography.html") public class Material extends Object implements AbstractTheme
| Constructor and Description |
|---|
Material() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseUrl()
The url for the base component implementation.
|
Map<String,String> |
getBodyAttributes(String variant)
Gets the attributes that should be set on the
<body> element when
the Theme variant is applied. |
List<String> |
getHeaderInlineContents()
Return a list of contents to inline to the bootstrap header.
|
String |
getThemeUrl()
The url for the components themed version implementation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittranslateUrlpublic static final String LIGHT
public static final String DARK
public String getBaseUrl()
AbstractThemee.g. src/
getBaseUrl in interface AbstractThemepublic String getThemeUrl()
AbstractThemee.g. theme/lumo/
getThemeUrl in interface AbstractThemepublic List<String> getHeaderInlineContents()
AbstractTheme
This will usually be the any <custom-style> declarations, see
CustomStyle
For importing theme files, use
HtmlImport on the
corresponding theme subclass.
getHeaderInlineContents in interface AbstractThemepublic Map<String,String> getBodyAttributes(String variant)
AbstractTheme<body> element when
the Theme variant is applied.getBodyAttributes in interface AbstractThemevariant - the variant defined in the Theme annotation, not
nullCopyright © 2018. All rights reserved.