public class BasicTextElementStateProvider extends AbstractTextElementStateProvider
For internal use only. May be renamed or removed in a future release.
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.
|
protected Object |
readResolve() |
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, visit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponent, setComponent
public static StateNode createStateNode(String text)
text
- the text to use, not null
public static BasicTextElementStateProvider get()
public boolean supports(StateNode node)
ElementStateProvider
node
- the state node to checkpublic String getTextContent(StateNode node)
ElementStateProvider
ElementStateProvider.isTextNode(StateNode)
returns true
.node
- the node containing the datapublic void setTextContent(StateNode node, String textContent)
ElementStateProvider
ElementStateProvider.isTextNode(StateNode)
returns true
.node
- the node containing the datatextContent
- the text content, not nullpublic Node<?> getParent(StateNode node)
ElementStateProvider
node
- the node containing the dataprotected Object readResolve() throws ObjectStreamException
ObjectStreamException
Copyright © 2025. All rights reserved.