public interface BinderContext
BindingStrategy instances
enabling them to delegate the creation of any child nodes.| Modifier and Type | Method and Description |
|---|---|
void |
bind(StateNode stateNode,
elemental.dom.Node node)
Binds a DOM node for the given state node.
|
elemental.dom.Node |
createAndBind(StateNode node)
Creates and binds a DOM node for the given state node.
|
<T extends BindingStrategy<?>> |
getStrategies(Predicate<BindingStrategy<?>> predicate)
Gets the strategies with a specific type
T using filtering
predicate. |
elemental.dom.Node createAndBind(StateNode node)
node - the state node for which to create a DOM node, not
nullnullvoid bind(StateNode stateNode, elemental.dom.Node node)
stateNode - the state node to bind, not nullnode - the DOM node, not null<T extends BindingStrategy<?>> JsArray<T> getStrategies(Predicate<BindingStrategy<?>> predicate)
T using filtering
predicate.
Predicate normally should be based on Class<T>#isInstance() but
this method is not available in GWT so predicate instanceof T
should be used. It's the developer responsibility to make sure that the
resulting strategies types are correct to avoid
ClassCastException.
T - the array typepredicate - predicate to filter strategies using type T.Copyright © 2000–2019 Vaadin Ltd. All rights reserved.