public class ElementStylePropertyMap extends AbstractPropertyMap
For internal use only. May be renamed or removed in a future release.
Constructor and Description |
---|
ElementStylePropertyMap(StateNode node)
Creates a new element style map for the given node.
|
Modifier and Type | Method and 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.
|
getProperty, getPropertyNames, hasProperty, isValidValueType, removeAllProperties, removeProperty
clear, collectChanges, contains, forEachChild, generateChangesFromEmpty, get, getOrDefault, getOrDefault, getOrDefault, keySet, mayUpdateFromClient, put, put, remove, updateFromClient
allowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach, onDetach
public ElementStylePropertyMap(StateNode node)
node
- the node that the map belongs topublic void setProperty(String name, Serializable value, boolean emitChange)
AbstractPropertyMap
setProperty
in class AbstractPropertyMap
name
- the property namevalue
- the value, must be a string, a boolean, a double or
null
emitChange
- true to create a change event for the client sidepublic Style getStyle()
Copyright © 2025. All rights reserved.