T - a DOM node type which strategy is applicable forpublic interface BindingStrategy<T extends elemental.dom.Node>
StateNodes.
Only one strategy may be applicable for the given StateNode instance.
Once the applicable strategy is identified it's used to produce a
Node based on the StateNode instance and bind it.
| Modifier and Type | Method and Description |
|---|---|
void |
bind(StateNode stateNode,
T domNode,
BinderContext context)
Binds a DOM node to the
stateNode using context to create
and bind nodes of other types. |
T |
create(StateNode node)
Creates a DOM node for the
node. |
default String |
getTag(StateNode node)
Gets the tag value from the
NodeFeatures.ELEMENT_DATA feature for
the node. |
boolean |
isApplicable(StateNode node)
Returns
true is the strategy is applicable to the node. |
T create(StateNode node)
node.node - the state node for which to create a DOM node, not
nullnullboolean isApplicable(StateNode node)
true is the strategy is applicable to the node.node - the state node to check against oftrue if the strategy is applicable to the nodevoid bind(StateNode stateNode, T domNode, BinderContext context)
stateNode using context to create
and bind nodes of other types.stateNode - the state node to bind, not nulldomNode - the DOM node, not nullcontext - binder context to create and construct HTML nodes of other
typesdefault String getTag(StateNode node)
NodeFeatures.ELEMENT_DATA feature for
the node.node - the state nodenodeCopyright © 2000–2022 Vaadin Ltd. All rights reserved.