public class BasicTextElementStateProvider extends AbstractTextElementStateProvider
| Modifier and Type | Method and Description |
|---|---|
static StateNode |
createStateNode(String text)
Creates a compatible text state node using the given text.
|
static BasicTextElementStateProvider |
get()
Gets the one and only instance.
|
Node<?> |
getParent(StateNode node)
Gets the parent element.
|
String |
getTextContent(StateNode node)
Gets the text content.
|
void |
setTextContent(StateNode node,
String textContent)
Sets the text content.
|
boolean |
supports(StateNode node)
Checks if the element state provider supports the given state node.
|
addEventListener, addPropertyChangeListener, addSynchronizedProperty, appendVirtualChild, attachExistingElement, attachShadow, getAttribute, getAttributeNames, getChild, getChildCount, getClassList, getProperty, getPropertyNames, getShadowRoot, getStyle, getSynchronizedProperties, getSynchronizedPropertyEvents, getTag, hasAttribute, hasProperty, insertChild, isTextNode, isVisible, removeAllChildren, removeAttribute, removeChild, removeChild, removeProperty, setAttribute, setAttribute, setProperty, setVisible, visitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponent, setComponentpublic static StateNode createStateNode(String text)
text - the text to usepublic static BasicTextElementStateProvider get()
public boolean supports(StateNode node)
ElementStateProvidernode - the state node to checkpublic String getTextContent(StateNode node)
ElementStateProviderElementStateProvider.isTextNode(StateNode) returns true.node - the node containing the datapublic void setTextContent(StateNode node, String textContent)
ElementStateProviderElementStateProvider.isTextNode(StateNode) returns true.node - the node containing the datatextContent - the text content, not nullpublic Node<?> getParent(StateNode node)
ElementStateProvidernode - the node containing the dataCopyright © 2000–2018 Vaadin Ltd. All rights reserved.