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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.flow.dom.Style
Style.AlignItems, Style.AlignSelf, Style.BoxSizing, Style.Clear, Style.Display, Style.FlexBasis, Style.FlexDirection, Style.FlexWrap, Style.FloatCss, Style.FontWeight, Style.JustifyContent, Style.Overflow, Style.Position, Style.TextAlign, Style.Visibility, Style.WhiteSpace
-
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.
boolean
Checks 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.
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.dom.Style
setAlignItems, setAlignSelf, setBackground, setBackgroundColor, setBorder, setBorderBottom, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBottom, setBoxShadow, setBoxSizing, setClear, setColor, setCursor, setDisplay, setFlexBasis, setFlexBasis, setFlexDirection, setFlexGrow, setFlexShrink, setFlexWrap, setFloat, setFont, setFontSize, setFontWeight, setFontWeight, setFontWeight, setHeight, setJustifyContent, setLeft, setLineHeight, setMargin, setMarginBottom, setMarginInlineEnd, setMarginInlineStart, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOpacity, setOutline, setOverflow, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPosition, setRight, setScale, setTextAlign, setTextDecoration, setTop, setTransform, setTransformOrigin, setTransition, setVisibility, setWhiteSpace, setWidth, setZIndex
-
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:
Style
Sets the given style property to the given value.
Both camelCased (e.g.
fontFamily
) and dash-separated (e.g.font-family
versions are supported. -
remove
Description copied from interface:
Style
Removes the given style property if it has been set.
Both camelCased (e.g.
fontFamily
) and dash-separated (e.g.font-family
versions are supported. -
clear
Description copied from interface:
Style
Removes all set style properties.
-
get
Description copied from interface:
Style
Gets 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:
Style
Gets the defined style property names.
Note that this always returns the name as camelCased, e.g.
fontFamily
even if it has been set as dash-separated (font-family
). -
has
Description copied from interface:
Style
Checks if the given style property has been set.
Both camelCased (e.g.
fontFamily
) and dash-separated (e.g.font-family
versions are supported.
-