public class TextNodeMap extends NodeValue<String>
For internal use only. May be renamed or removed in a future release.
| Constructor and Description | 
|---|
TextNodeMap(StateNode node)
Creates a new text node map for the given node. 
 | 
| 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. 
 | 
collectChanges, forEachChild, generateChangesFromEmpty, getValue, setValueallowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach, onDetachpublic TextNodeMap(StateNode node)
node - the node that the map belongs toprotected String getKey()
NodeValueThe 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.
public void setText(String text)
text - the text, not nullpublic String getText()
Copyright © 2021. All rights reserved.