com.vaadin.flow.internal.nodefeature.
Class BasicTypeValue
All Implemented Interfaces:
The feature contains a value of the basic type.
The value is wrapped into a StateNode
and this feature instead being
sent directly. It allows to use basic types in lists.
For internal use only. May be renamed or removed in a future release.
Since:
1.0
Author:
Vaadin Ltd
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getKey()
Gets the key that should be used when the value of this feature is sent to the client.
getValue()
Gets the value of a basic type.
void
setValue
(Serializable value) Sets the value of a basic type.
Methods inherited from class com.vaadin.flow.internal.nodefeature.NodeValue
collectChanges, forEachChild, generateChangesFromEmpty
Methods inherited from class com.vaadin.flow.internal.nodefeature.NodeFeature
allowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach, onDetach
-
Constructor Details
-
BasicTypeValue
Creates a new value map for the given node.
Parameters:
node
- the node that the map belongs to
-
-
Method Details
-
getKey
Description copied from class:
NodeValue
Gets the key that should be used when the value of this feature is sent to the client.
The key is fetched on demand from the sub class instead of e.g. requiring it as a constructor parameter to avoid storing an additional member field in each instance.
Specified by:
getKey
in classNodeValue<Serializable>
Returns:
the key value, not
null
-
setValue
Sets the value of a basic type.
Overrides:
setValue
in classNodeValue<Serializable>
Parameters:
value
- the value to set -
getValue
Gets the value of a basic type.
Overrides:
getValue
in classNodeValue<Serializable>
Returns:
the value
-