Package com.vaadin.client.flow.binding
Class TextBindingStrategy
java.lang.Object
com.vaadin.client.flow.binding.TextBindingStrategy
- All Implemented Interfaces:
BindingStrategy<elemental.dom.Text>
Binding strategy for simple (not template) text
Node.- Since:
- 1.0
- Author:
- Vaadin Ltd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(StateNode stateNode, elemental.dom.Text htmlNode, BinderContext nodeFactory) Binds a DOM node to thestateNodeusingcontextto create and bind nodes of other types.elemental.dom.TextCreates 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, waitMethods inherited from interface com.vaadin.client.flow.binding.BindingStrategy
getTag
-
Constructor Details
-
TextBindingStrategy
public TextBindingStrategy()
-
-
Method Details
-
create
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
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
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
-