public class TextNodeMap extends NodeValue<String>
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, setValue
allowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach, onDetach
public TextNodeMap(StateNode node)
node
- the node that the map belongs toprotected String getKey()
NodeValue
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.
public void setText(String text)
text
- the text, not null
public String getText()
Copyright © 2020. All rights reserved.