public abstract class AbstractTextElementStateProvider extends Object implements ElementStateProvider
UnsupportedOperationException.
 For internal use only. May be renamed or removed in a future release.
| Constructor and Description | 
|---|
AbstractTextElementStateProvider()  | 
| Modifier and Type | Method and Description | 
|---|---|
DomListenerRegistration | 
addEventListener(StateNode node,
                String eventType,
                DomEventListener listener)
Adds a DOM event listener. 
 | 
Registration | 
addPropertyChangeListener(StateNode node,
                         String name,
                         PropertyChangeListener listener)
Adds a property change listener. 
 | 
void | 
addSynchronizedProperty(StateNode node,
                       String property,
                       DisabledUpdateMode mode)
Makes the property synchronized from the client side to the server. 
 | 
void | 
appendVirtualChild(StateNode node,
                  Element child,
                  String type,
                  String payload)
Append the given element as a virtual child. 
 | 
void | 
attachExistingElement(StateNode node,
                     String tagName,
                     Element previousSibling,
                     ChildElementConsumer callback)
Attaches a child element with the given  
tagName which is the next
 sibling for the previousSibling. | 
StateNode | 
attachShadow(StateNode node)
Attaches the shadow root for the  
node. | 
String | 
getAttribute(StateNode node,
            String attribute)
Gets the value of the given attribute. 
 | 
Stream<String> | 
getAttributeNames(StateNode node)
Gets the defined attribute names. 
 | 
Element | 
getChild(StateNode node,
        int index)
Returns the child element at the given position. 
 | 
int | 
getChildCount(StateNode node)
Gets the number of child elements. 
 | 
ClassList | 
getClassList(StateNode node)
Gets a list representation of all CSS class names set for an element. 
 | 
Serializable | 
getProperty(StateNode node,
           String name)
Gets the value of the given property. 
 | 
Stream<String> | 
getPropertyNames(StateNode node)
Gets the defined property names. 
 | 
StateNode | 
getShadowRoot(StateNode node)
Gets shadow root for the  
node if it has been attached. | 
Style | 
getStyle(StateNode node)
Returns a style instance for managing element inline styles. 
 | 
Set<String> | 
getSynchronizedProperties(StateNode node)
Gets the names of the properties to synchronize from the client side to
 the server. 
 | 
Set<String> | 
getSynchronizedPropertyEvents(StateNode node)
Gets the event types which should trigger synchronization of properties
 from the client side to the server. 
 | 
String | 
getTag(StateNode node)
Gets the tag name for the given node. 
 | 
boolean | 
hasAttribute(StateNode node,
            String attribute)
Checks if the given attribute has been set. 
 | 
boolean | 
hasProperty(StateNode node,
           String name)
Checks if the given property has been set. 
 | 
void | 
insertChild(StateNode node,
           int index,
           Element child)
Inserts the given child at the given position. 
 | 
boolean | 
isTextNode(StateNode node)
Checks if the state node represents a text node. 
 | 
boolean | 
isVisible(StateNode node)
Gets the  
node visibility. | 
void | 
removeAllChildren(StateNode node)
Removes all child elements. 
 | 
void | 
removeAttribute(StateNode node,
               String attribute)
Removes the given attribute if it has been set. 
 | 
void | 
removeChild(StateNode node,
           Element child)
Removes the given child. 
 | 
void | 
removeChild(StateNode node,
           int index)
Removes the child at the given position. 
 | 
void | 
removeProperty(StateNode node,
              String name)
Removes the given property if it has been set. 
 | 
void | 
setAttribute(StateNode node,
            String attribute,
            AbstractStreamResource resource)
Sets the given attribute to the given  
StreamResource value. | 
void | 
setAttribute(StateNode node,
            String attribute,
            String value)
Sets the given attribute to the given value. 
 | 
void | 
setProperty(StateNode node,
           String name,
           Serializable value,
           boolean emitChange)
Sets the given property to the given value. 
 | 
void | 
setVisible(StateNode node,
          boolean visible)
Sets the  
node visibility. | 
void | 
visit(StateNode node,
     NodeVisitor visitor)
Visit the  
node applying visitor to it and its descendants
 based on the return value from the visitor. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponent, getParent, getTextContent, setComponent, setTextContent, supportspublic boolean isTextNode(StateNode node)
ElementStateProviderisTextNode in interface ElementStateProvidernode - the node to checktrue if the state node represents a text node;
         otherwise falsepublic String getTag(StateNode node)
ElementStateProvidergetTag in interface ElementStateProvidernode - the node containing the datapublic void setAttribute(StateNode node, String attribute, String value)
ElementStateProvidersetAttribute in interface ElementStateProvidernode - the node containing the dataattribute - the attribute name, not nullvalue - the attribute valuepublic String getAttribute(StateNode node, String attribute)
ElementStateProvidergetAttribute in interface ElementStateProvidernode - the node containing the dataattribute - the attribute name, not nullpublic boolean hasAttribute(StateNode node, String attribute)
ElementStateProviderhasAttribute in interface ElementStateProvidernode - the node containing the dataattribute - the attribute name, not nullpublic void removeAttribute(StateNode node, String attribute)
ElementStateProviderremoveAttribute in interface ElementStateProvidernode - the node containing the dataattribute - the attribute name, not nullpublic Stream<String> getAttributeNames(StateNode node)
ElementStateProvidergetAttributeNames in interface ElementStateProvidernode - the node containing the datapublic int getChildCount(StateNode node)
ElementStateProvidergetChildCount in interface ElementStateProvidernode - the node containing the datapublic Element getChild(StateNode node, int index)
ElementStateProvidergetChild in interface ElementStateProvidernode - the node containing the dataindex - the index of the child element to returnpublic void insertChild(StateNode node, int index, Element child)
ElementStateProviderinsertChild in interface ElementStateProvidernode - the node containing the dataindex - the position at which to insert the new childchild - the child element to insertpublic void removeChild(StateNode node, int index)
ElementStateProviderremoveChild in interface ElementStateProvidernode - the node containing the dataindex - the position of the child element to removepublic void removeChild(StateNode node, Element child)
ElementStateProviderremoveChild in interface ElementStateProvidernode - the node containing the datachild - the child element to removepublic void removeAllChildren(StateNode node)
ElementStateProviderremoveAllChildren in interface ElementStateProvidernode - the node containing the datapublic DomListenerRegistration addEventListener(StateNode node, String eventType, DomEventListener listener)
ElementStateProvideraddEventListener in interface ElementStateProvidernode - the node containing the dataeventType - the event typelistener - the listenerpublic Serializable getProperty(StateNode node, String name)
ElementStateProvidergetProperty in interface ElementStateProvidernode - the node containing the dataname - the property name, not nullnull if the property has not
         been setpublic void setProperty(StateNode node, String name, Serializable value, boolean emitChange)
ElementStateProvidersetProperty in interface ElementStateProvidernode - the node containing the dataname - the property name, not nullvalue - the property valueemitChange - true to create a change event for the client sidepublic void removeProperty(StateNode node, String name)
ElementStateProviderremoveProperty in interface ElementStateProvidernode - the node containing the dataname - the property name, not nullpublic boolean hasProperty(StateNode node, String name)
ElementStateProviderhasProperty in interface ElementStateProvidernode - the node containing the dataname - the property name, not nulltrue if the property has been set,
         false otherwisepublic Stream<String> getPropertyNames(StateNode node)
ElementStateProvidergetPropertyNames in interface ElementStateProvidernode - the node containing the datapublic ClassList getClassList(StateNode node)
ElementStateProvidergetClassList in interface ElementStateProvidernode - the node containing the datanullpublic Style getStyle(StateNode node)
ElementStateProvidergetStyle in interface ElementStateProvidernode - the node containing the datapublic Set<String> getSynchronizedProperties(StateNode node)
ElementStateProvider
 The events which trigger synchronization are defined using
 ElementStateProvider.getSynchronizedPropertyEvents(StateNode).
getSynchronizedProperties in interface ElementStateProvidernode - the node containing the datapublic Set<String> getSynchronizedPropertyEvents(StateNode node)
ElementStateProvidergetSynchronizedPropertyEvents in interface ElementStateProvidernode - the node containing the datapublic void setAttribute(StateNode node, String attribute, AbstractStreamResource resource)
ElementStateProviderStreamResource value.setAttribute in interface ElementStateProvidernode - the node containing the dataattribute - the attribute name, not nullresource - the attribute value, not nullpublic Registration addPropertyChangeListener(StateNode node, String name, PropertyChangeListener listener)
ElementStateProvideraddPropertyChangeListener in interface ElementStateProvidernode - the node containing the propertyname - the property name to add the listener forlistener - listener to get notifications about property value changespublic StateNode getShadowRoot(StateNode node)
ElementStateProvidernode if it has been attached.getShadowRoot in interface ElementStateProvidernode - the node having a shadow root, not nullnode, may be nullpublic StateNode attachShadow(StateNode node)
ElementStateProvidernode.attachShadow in interface ElementStateProvidernode - the node to attach the shadow rootnodepublic void attachExistingElement(StateNode node, String tagName, Element previousSibling, ChildElementConsumer callback)
ElementStateProvidertagName which is the next
 sibling for the previousSibling.
 
 The previousSibling parameter value can be null which
 means that the very first child with the given tagName will be
 used to attach (if any).
attachExistingElement in interface ElementStateProvidernode - the parent nodetagName - the tag name of the element to attach, not nullpreviousSibling - previous sibling, may be nullcallback - the callback which will be invoked with a server side element
            instance or an error will be reported, not nullpublic void appendVirtualChild(StateNode node, Element child, String type, String payload)
ElementStateProviderappendVirtualChild in interface ElementStateProvidernode - the node containing the datachild - the child element to addtype - the type of additional payload datapayload - the additional payload datapublic void visit(StateNode node, NodeVisitor visitor)
ElementStateProvidernode applying visitor to it and its descendants
 based on the return value from the visitor.visit in interface ElementStateProvidernode - the node to visitvisitor - the visitor to apply to the nodepublic void setVisible(StateNode node, boolean visible)
ElementStateProvidernode visibility.setVisible in interface ElementStateProvidernode - the node containing the datavisible - the node visibility valuepublic boolean isVisible(StateNode node)
ElementStateProvidernode visibility.isVisible in interface ElementStateProvidernode - the node containing the datapublic void addSynchronizedProperty(StateNode node, String property, DisabledUpdateMode mode)
ElementStateProvider
 The events which trigger synchronization are defined using
 ElementStateProvider.getSynchronizedPropertyEvents(StateNode).
addSynchronizedProperty in interface ElementStateProvidernode - the node containing the dataproperty - the property to synchronizemode - controls RPC from the client side to the server side when the
            element is disabled, not nullElementStateProvider.getSynchronizedPropertyEvents(StateNode), 
ElementStateProvider.getSynchronizedProperties(StateNode)Copyright © 2021. All rights reserved.