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
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:
-
Constructor Summary
ConstructorDescriptionCreates a new element style map for the given node. -
Method Summary
Modifier and TypeMethodDescriptiongetStyle()
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 Details
-
ElementStylePropertyMap
Creates a new element style map for the given node.- Parameters:
node
- the node that the map belongs to
-
-
Method Details
-
setProperty
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
Returns a style instance for managing element inline styles.- Returns:
- a Style instance connected to this map
-