Package com.vaadin.flow.internal
Interface NodeOwner
- All Superinterfaces:
Serializable
Abstract root of a state node tree. A node always belongs to one specific
owner. The owner keeps track of metadata for its nodes.
For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if given node is registered to this node owner.void
markAsDirty
(StateNode node) Marks a node owned by this instance as dirty.int
Registers a node with this node owner.void
unregister
(StateNode node) Unregisters a node from this owner.
-
Method Details
-
register
Registers a node with this node owner. The new node should already be set to be owned by this instance.- Parameters:
node
- the node to register- Returns:
- the id of the registered node
-
unregister
Unregisters a node from this owner. This must be done before the node is set to not be owned by this instance.- Parameters:
node
- the node to unregister
-
markAsDirty
Marks a node owned by this instance as dirty. Dirty nodes are collected from an owner usingStateTree.collectDirtyNodes()
.- Parameters:
node
- the node to be marked as dirty
-
hasNode
Check if given node is registered to this node owner.- Parameters:
node
- node to check registration status for- Returns:
- true if node is registered
-