public class SimpleElementBindingStrategy extends Object implements BindingStrategy<elemental.dom.Element>
Element node.| Constructor and Description |
|---|
SimpleElementBindingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(StateNode stateNode,
elemental.dom.Element htmlNode,
BinderContext nodeFactory)
Binds a DOM node to the
stateNode using context to create
and bind nodes of other types. |
elemental.dom.Element |
create(StateNode node)
Creates a DOM node for the
node. |
boolean |
isApplicable(StateNode node)
Returns
true is the strategy is applicable to the node. |
static boolean |
needsRebind(StateNode node)
Checks whether the
node needs re-bind. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTagpublic elemental.dom.Element create(StateNode node)
BindingStrategynode.create in interface BindingStrategy<elemental.dom.Element>node - the state node for which to create a DOM node, not
nullnullpublic boolean isApplicable(StateNode node)
BindingStrategytrue is the strategy is applicable to the node.isApplicable in interface BindingStrategy<elemental.dom.Element>node - the state node to check against oftrue if the strategy is applicable to the nodepublic void bind(StateNode stateNode, elemental.dom.Element htmlNode, BinderContext nodeFactory)
BindingStrategystateNode using context to create
and bind nodes of other types.bind in interface BindingStrategy<elemental.dom.Element>stateNode - the state node to bind, not nullhtmlNode - the DOM node, not nullnodeFactory - binder context to create and construct HTML nodes of other
typespublic static boolean needsRebind(StateNode node)
node needs re-bind.
The node needs re-bind if it was initially invisible. As a consequence such node has not be bound. It has been bound in respect to visibility feature only (partially bound). Such node needs re-bind once it becomes visible.
node - the node to checktrue if the node is not entirely bound and needs re-bind
later onCopyright © 2000–2020 Vaadin Ltd. All rights reserved.