Class ElementAttributeMap
java.lang.Object
com.vaadin.flow.internal.nodefeature.NodeFeature
com.vaadin.flow.internal.nodefeature.NodeMap
com.vaadin.flow.internal.nodefeature.ElementAttributeMap
- All Implemented Interfaces:
Serializable
Map for element attribute values.
For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionElementAttributeMap
(StateNode node) Creates a new element attribute map for the given node. -
Method Summary
Modifier and TypeMethodDescriptionGets the attribute names.Gets the value of an attribute.boolean
Checks whether an attribute with the given name has been set.Removes the named attribute.void
Sets the given attribute to the given value.void
setResource
(String attribute, AbstractStreamResource resource) Sets the given attribute to the givenStreamResource
value.Methods inherited from class com.vaadin.flow.internal.nodefeature.NodeMap
clear, collectChanges, contains, forEachChild, generateChangesFromEmpty, getOrDefault, getOrDefault, getOrDefault, keySet, mayUpdateFromClient, producePutChange, put, put, updateFromClient
Methods inherited from class com.vaadin.flow.internal.nodefeature.NodeFeature
allowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach, onDetach
-
Constructor Details
-
ElementAttributeMap
Creates a new element attribute map for the given node.- Parameters:
node
- the node that the map belongs to
-
-
Method Details
-
set
Sets the given attribute to the given value.- Parameters:
attribute
- the attribute namevalue
- the value
-
has
Checks whether an attribute with the given name has been set.- Parameters:
attribute
- the name of the attribute- Returns:
true
if there is a property with the given name;false
if there is no property
-
remove
Removes the named attribute. -
get
Gets the value of an attribute. -
attributes
Gets the attribute names.- Returns:
- a stream of all the attribute names which have been set
-
setResource
Sets the given attribute to the givenStreamResource
value.- Parameters:
attribute
- the attribute nameresource
- the value
-