com.vaadin.flow.dom.impl.
Class BasicElementStyle
All Implemented Interfaces:
Implementation of Style for BasicElementStateProvider.
 
For internal use only. May be renamed or removed in a future release.
Since:
1.0
Author:
Vaadin Ltd
See Also:
- 
Constructor Summary
ConstructorsConstructorDescriptionBasicElementStyle(ElementStylePropertyMap propertyMap) Creates an instance connected to the given map.
 - 
Method Summary
Modifier and TypeMethodDescriptionclear()Removes all set style properties.
Gets the value of the given style property.
getNames()Gets the defined style property names.
booleanChecks if the given style property has been set.
Removes the given style property if it has been set.
Sets the given style property to the given value.
 
- 
Constructor Details
- 
BasicElementStyle
Creates an instance connected to the given map.
Parameters:
propertyMap- the feature where the data is stored 
 - 
 - 
Method Details
- 
set
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
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
Description copied from interface:
StyleRemoves all set style properties.
 - 
get
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"
 - 
getNames
Description copied from interface:
StyleGets the defined style property names.
Note that this always returns the name as camelCased, e.g.
fontFamilyeven if it has been set as dash-separated (font-family). - 
has
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. 
 -