Package com.vaadin.flow.dom.impl
Class ImmutableEmptyStyle
- java.lang.Object
-
- com.vaadin.flow.dom.impl.ImmutableEmptyStyle
-
- All Implemented Interfaces:
Style,Serializable
public class ImmutableEmptyStyle extends Object implements Style
A style implementation which is empty and immutable.For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImmutableEmptyStyle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Styleclear()Removes all set style properties.Stringget(String name)Gets the value of the given style property.Stream<String>getNames()Gets the defined style property names.booleanhas(String name)Checks if the given style property has been set.Styleremove(String name)Removes the given style property if it has been set.Styleset(String name, String value)Sets the given style property to the given value.
-
-
-
Method Detail
-
get
public String get(String name)
Description copied from interface:StyleGets the value of the given style property.Note that the name should be in camelCase and not dash-separated, i.e. use "fontFamily" and not "font-family"
-
set
public Style set(String name, String value)
Description copied from interface:StyleSets the given style property to the given value.Both camelCased (e.g.
fontFamily) and dash-separated (e.g.font-familyversions are supported.
-
remove
public Style remove(String name)
Description copied from interface:StyleRemoves the given style property if it has been set.Both camelCased (e.g.
fontFamily) and dash-separated (e.g.font-familyversions are supported.
-
clear
public Style clear()
Description copied from interface:StyleRemoves all set style properties.
-
has
public boolean has(String name)
Description copied from interface:StyleChecks if the given style property has been set.Both camelCased (e.g.
fontFamily) and dash-separated (e.g.font-familyversions are supported.
-
-