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 voidcollectChanges(Consumer<NodeChange> collector)Collects all changes that are recorded for this feature.voidforEachChild(Consumer<StateNode> action)Passes each child node instance to the given consumer.voidgenerateChangesFromEmpty()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:NodeFeatureCollects all changes that are recorded for this feature.- Specified by:
collectChangesin classNodeFeature- Parameters:
collector- a consumer accepting node changes
-
generateChangesFromEmpty
public void generateChangesFromEmpty()
Description copied from class:NodeFeatureGenerates all changes that would be needed to take this node from its initial empty state to its current state.- Specified by:
generateChangesFromEmptyin classNodeFeature
-
forEachChild
public void forEachChild(Consumer<StateNode> action)
Description copied from class:NodeFeaturePasses each child node instance to the given consumer.- Specified by:
forEachChildin classNodeFeature- Parameters:
action- the consumer that accepts each child
-
-