Class ElementStylePropertyMap
- java.lang.Object
-
- com.vaadin.flow.internal.nodefeature.NodeFeature
-
- com.vaadin.flow.internal.nodefeature.NodeMap
-
- com.vaadin.flow.internal.nodefeature.AbstractPropertyMap
-
- com.vaadin.flow.internal.nodefeature.ElementStylePropertyMap
-
- All Implemented Interfaces:
Serializable
public class ElementStylePropertyMap extends AbstractPropertyMap
Map for element style values.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 ElementStylePropertyMap(StateNode node)
Creates a new element style map for the given node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Style
getStyle()
Returns a style instance for managing element inline styles.void
setProperty(String name, Serializable value, boolean emitChange)
Sets a property to the given value.-
Methods inherited from class com.vaadin.flow.internal.nodefeature.AbstractPropertyMap
getProperty, getPropertyNames, hasProperty, isValidValueType, removeAllProperties, removeProperty
-
Methods inherited from class com.vaadin.flow.internal.nodefeature.NodeMap
clear, collectChanges, contains, forEachChild, generateChangesFromEmpty, get, getOrDefault, getOrDefault, getOrDefault, keySet, mayUpdateFromClient, producePutChange, put, put, remove, updateFromClient
-
Methods inherited from class com.vaadin.flow.internal.nodefeature.NodeFeature
allowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach, onDetach
-
-
-
-
Constructor Detail
-
ElementStylePropertyMap
public ElementStylePropertyMap(StateNode node)
Creates a new element style map for the given node.- Parameters:
node
- the node that the map belongs to
-
-
Method Detail
-
setProperty
public void setProperty(String name, Serializable value, boolean emitChange)
Description copied from class:AbstractPropertyMap
Sets a property to the given value.- Overrides:
setProperty
in classAbstractPropertyMap
- Parameters:
name
- the property namevalue
- the value, must be a string, a boolean, a double ornull
emitChange
- true to create a change event for the client side
-
getStyle
public Style getStyle()
Returns a style instance for managing element inline styles.- Returns:
- a Style instance connected to this map
-
-