Package com.vaadin.client.flow.binding
Class TextBindingStrategy
- java.lang.Object
-
- com.vaadin.client.flow.binding.TextBindingStrategy
-
- All Implemented Interfaces:
BindingStrategy<elemental.dom.Text>
public class TextBindingStrategy extends Object implements BindingStrategy<elemental.dom.Text>
Binding strategy for simple (not template) textNode.- Since:
- 1.0
- Author:
- Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor Description TextBindingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(StateNode stateNode, elemental.dom.Text htmlNode, BinderContext nodeFactory)Binds a DOM node to thestateNodeusingcontextto create and bind nodes of other types.elemental.dom.Textcreate(StateNode node)Creates a DOM node for thenode.booleanisApplicable(StateNode node)Returnstrueis the strategy is applicable to thenode.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.client.flow.binding.BindingStrategy
getTag
-
-
-
-
Method Detail
-
create
public elemental.dom.Text create(StateNode node)
Description copied from interface:BindingStrategyCreates a DOM node for thenode.- Specified by:
createin interfaceBindingStrategy<elemental.dom.Text>- Parameters:
node- the state node for which to create a DOM node, notnull- Returns:
- the DOM node, not
null
-
isApplicable
public boolean isApplicable(StateNode node)
Description copied from interface:BindingStrategyReturnstrueis the strategy is applicable to thenode.- Specified by:
isApplicablein interfaceBindingStrategy<elemental.dom.Text>- Parameters:
node- the state node to check against of- Returns:
trueif the strategy is applicable to the node
-
bind
public void bind(StateNode stateNode, elemental.dom.Text htmlNode, BinderContext nodeFactory)
Description copied from interface:BindingStrategyBinds a DOM node to thestateNodeusingcontextto create and bind nodes of other types.- Specified by:
bindin interfaceBindingStrategy<elemental.dom.Text>- Parameters:
stateNode- the state node to bind, notnullhtmlNode- the DOM node, notnullnodeFactory- binder context to create and construct HTML nodes of other types
-
-