Package com.vaadin.flow.dom.impl
Class ImmutableEmptyStyle
java.lang.Object
com.vaadin.flow.dom.impl.ImmutableEmptyStyle
- All Implemented Interfaces:
Style,Serializable
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:
-
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
Constructors -
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.dom.Style
setAlignItems, setAlignSelf, setBackground, setBackgroundColor, setBackgroundPosition, setBackgroundSize, setBorder, setBorderBottom, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBottom, setBoxShadow, setBoxSizing, setClear, setColor, setCursor, setDisplay, setFilter, setFlexBasis, setFlexBasis, setFlexDirection, setFlexGrow, setFlexShrink, setFlexWrap, setFloat, setFont, setFontSize, setFontWeight, setFontWeight, setFontWeight, setGap, 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, setRotate, setScale, setTextAlign, setTextDecoration, setTop, setTransform, setTransformOrigin, setTransition, setVisibility, setWhiteSpace, setWidth, setZIndex
-
Constructor Details
-
ImmutableEmptyStyle
public ImmutableEmptyStyle()
-
-
Method Details
-
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"
-
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. -
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. -
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).
-