com.vaadin.flow.internal.nodefeature.
Class TextNodeMap
- java.lang.Object
-
- com.vaadin.flow.internal.nodefeature.NodeFeature
-
- com.vaadin.flow.internal.nodefeature.NodeValue<String>
-
- com.vaadin.flow.internal.nodefeature.TextNodeMap
-
-
Constructor Summary
Constructors Constructor and Description TextNodeMap(StateNode node)
Creates a new text node map for the given node.
-
Method Summary
All Methods Modifier and Type Method and Description protected String
getKey()
Gets the key that should be used when the value of this feature is sent to the client.
String
getText()
Gets the text of this node.
void
setText(String text)
Sets the text of this node.
-
Methods inherited from class com.vaadin.flow.internal.nodefeature.NodeValue
collectChanges, forEachChild, generateChangesFromEmpty, getValue, setValue
-
Methods inherited from class com.vaadin.flow.internal.nodefeature.NodeFeature
allowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach, onDetach
-
-
-
-
Constructor Detail
-
TextNodeMap
public TextNodeMap(StateNode node)
Creates a new text node map for the given node.
Parameters:
node
- the node that the map belongs to
-
-
Method Detail
-
getKey
protected String 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.
-
setText
public void setText(String text)
Sets the text of this node.
Parameters:
text
- the text, not null
-
getText
public String getText()
Gets the text of this node.
Returns:
the text, not null
-
-