com.vaadin.flow.internal.nodefeature.
Class ServerSideFeature
All Implemented Interfaces:
Direct Known Subclasses:
AttachExistingElementFeature
, ComponentMapping
, InertData
, ReturnChannelMap
, ShadowRootHost
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
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 Details
-
ServerSideFeature
Creates a new feature for the given node.
Parameters:
node
- the node which supports the feature
-
-
Method Details
-
collectChanges
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
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
-