com.vaadin.flow.internal.nodefeature.
Class SynchronizedPropertiesList
- java.lang.Object
-
- com.vaadin.flow.internal.nodefeature.NodeFeature
-
- com.vaadin.flow.internal.nodefeature.NodeList<T>
-
- com.vaadin.flow.internal.nodefeature.SerializableNodeList<String>
-
- com.vaadin.flow.internal.nodefeature.SynchronizedPropertiesList
-
All Implemented Interfaces:
public class SynchronizedPropertiesList extends SerializableNodeList<String>
List of synchronized properties for an element.
Since:
1.0
Author:
Vaadin Ltd
See Also:
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.flow.internal.nodefeature.NodeList
NodeList.SetView<T extends Serializable>
-
-
Constructor Summary
Constructors Constructor and Description SynchronizedPropertiesList(StateNode node)
Creates a new synchronized properties list for the given node.
-
Method Summary
All Methods Modifier and Type Method and Description void
add(String property, DisabledUpdateMode mode)
Add the
property
to the synchronized properties list.DisabledUpdateMode
getDisabledUpdateMode(String property)
Gets property update mode for disabled element.
Set<String>
getSynchronizedProperties()
Creates a view into this list.
-
Methods inherited from class com.vaadin.flow.internal.nodefeature.SerializableNodeList
add
-
Methods inherited from class com.vaadin.flow.internal.nodefeature.NodeList
add, addAll, clear, collectChanges, forEachChild, generateChangesFromEmpty, get, getChangeTracker, indexOf, isNodeValues, iterator, onDetach, remove, size
-
Methods inherited from class com.vaadin.flow.internal.nodefeature.NodeFeature
allowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach
-
-
-
-
Constructor Detail
-
SynchronizedPropertiesList
public SynchronizedPropertiesList(StateNode node)
Creates a new synchronized properties list for the given node.
Parameters:
node
- the node that the list belongs to
-
-
Method Detail
-
getSynchronizedProperties
public Set<String> getSynchronizedProperties()
Creates a view into this list.
Returns:
a view into this list
-
add
public void add(String property, DisabledUpdateMode mode)
Add the
property
to the synchronized properties list.Parameters:
property
- the property to synchronizemode
- controls RPC from the client side to the server side when the element is disabled, notnull
-
getDisabledUpdateMode
public DisabledUpdateMode getDisabledUpdateMode(String property)
Gets property update mode for disabled element.
Parameters:
property
- the property to get update modeReturns:
the property update mode for disabled element
-
-