Class ServerSideFeature
- java.lang.Object
-
- com.vaadin.flow.internal.nodefeature.NodeFeature
-
- com.vaadin.flow.internal.nodefeature.ServerSideFeature
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AttachExistingElementFeature
,ComponentMapping
,InertData
,ReturnChannelMap
,ShadowRootHost
public abstract class ServerSideFeature extends NodeFeature
Abstract node feature that is only present on the server. A server side feature does not produce any node changes and it can't contain child nodes.For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServerSideFeature(StateNode node)
Creates a new feature for the given node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collectChanges(Consumer<NodeChange> collector)
Collects all changes that are recorded for this feature.void
forEachChild(Consumer<StateNode> action)
Passes each child node instance to the given consumer.void
generateChangesFromEmpty()
Generates all changes that would be needed to take this node from its initial empty state to its current state.-
Methods inherited from class com.vaadin.flow.internal.nodefeature.NodeFeature
allowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach, onDetach
-
-
-
-
Constructor Detail
-
ServerSideFeature
public ServerSideFeature(StateNode node)
Creates a new feature for the given node.- Parameters:
node
- the node which supports the feature
-
-
Method Detail
-
collectChanges
public void collectChanges(Consumer<NodeChange> collector)
Description copied from class:NodeFeature
Collects all changes that are recorded for this feature.- Specified by:
collectChanges
in classNodeFeature
- Parameters:
collector
- a consumer accepting node changes
-
generateChangesFromEmpty
public void generateChangesFromEmpty()
Description copied from class:NodeFeature
Generates all changes that would be needed to take this node from its initial empty state to its current state.- Specified by:
generateChangesFromEmpty
in classNodeFeature
-
forEachChild
public void forEachChild(Consumer<StateNode> action)
Description copied from class:NodeFeature
Passes each child node instance to the given consumer.- Specified by:
forEachChild
in classNodeFeature
- Parameters:
action
- the consumer that accepts each child
-
-