com.vaadin.flow.theme.material.
Class Material
- java.lang.Object
-
- com.vaadin.flow.theme.material.Material
-
All Implemented Interfaces:
@NpmPackage(value="@vaadin/vaadin-material-styles", version="1.3.2") @JsModule(value="@vaadin/vaadin-material-styles/color.js") @JsModule(value="@vaadin/vaadin-material-styles/typography.js") public class Material extends Object implements AbstractTheme
Material component theme class implementation.
Since:
1.2
See Also:
-
-
Constructor Summary
Constructors Constructor and Description Material()
-
Method Summary
All Methods Modifier and Type Method and Description String
getBaseUrl()
The url for the base component implementation.
Map<String,String>
getBodyAttributes(String variant)
Deprecated.
List<String>
getHeaderInlineContents()
Return a list of contents to inline to the bootstrap header.
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.
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.theme.AbstractTheme
translateUrl
-
-
-
-
Field Detail
-
LIGHT
public static final String LIGHT
See Also:
-
DARK
public static final String DARK
See Also:
-
-
Method Detail
-
getBaseUrl
public String getBaseUrl()
Description copied from interface:
AbstractTheme
The url for the base component implementation.
e.g. src/
Specified by:
getBaseUrl
in interfaceAbstractTheme
Returns:
the base component path
-
getThemeUrl
public String getThemeUrl()
Description copied from interface:
AbstractTheme
The url for the components themed version implementation.
e.g. theme/lumo/
Specified by:
getThemeUrl
in interfaceAbstractTheme
Returns:
the themed component path
-
getHeaderInlineContents
public List<String> getHeaderInlineContents()
Description copied from interface:
AbstractTheme
Return a list of contents to inline to the bootstrap header. The contents will be handled as no-wrap as is and will be inserted to the initial page head tag.
This will usually be the any
<custom-style>
declarations, see CustomStyleFor importing theme files, use
HtmlImport
on the corresponding theme subclass.Specified by:
getHeaderInlineContents
in interfaceAbstractTheme
Returns:
list of string content to inline or empty list if nothing to inline
-
getBodyAttributes
@Deprecated public Map<String,String> getBodyAttributes(String variant)
Deprecated.
Description copied from interface:
AbstractTheme
Gets the attributes that should be set on the
<body>
element when the Theme variant is applied.Specified by:
getBodyAttributes
in interfaceAbstractTheme
Parameters:
variant
- the variant defined in theTheme
annotation, notnull
Returns:
a Map with the attributes (keys and values) that should be set in the body, or an empty Map if nothing should be set for the given variant.
-
getHtmlAttributes
public Map<String,String> getHtmlAttributes(String variant)
Description copied from interface:
AbstractTheme
Gets the attributes that should be set on the
<html>
element when the Theme variant is applied.Specified by:
getHtmlAttributes
in interfaceAbstractTheme
Parameters:
variant
- the variant defined in theTheme
annotation, notnull
Returns:
a Map with the attributes (keys and values) that should be set in the body, or an empty Map if nothing should be set for the given variant.
-
-