Class TextBindingStrategy

  • All Implemented Interfaces:
    BindingStrategy<elemental.dom.Text>

    public class TextBindingStrategy
    extends Object
    implements BindingStrategy<elemental.dom.Text>
    Binding strategy for simple (not template) text Node.
    Since:
    1.0
    Author:
    Vaadin Ltd
    • Constructor Detail

      • TextBindingStrategy

        public TextBindingStrategy()
    • Method Detail

      • create

        public elemental.dom.Text create​(StateNode node)
        Description copied from interface: BindingStrategy
        Creates a DOM node for the node.
        Specified by:
        create in interface BindingStrategy<elemental.dom.Text>
        Parameters:
        node - the state node for which to create a DOM node, not null
        Returns:
        the DOM node, not null
      • isApplicable

        public boolean isApplicable​(StateNode node)
        Description copied from interface: BindingStrategy
        Returns true is the strategy is applicable to the node.
        Specified by:
        isApplicable in interface BindingStrategy<elemental.dom.Text>
        Parameters:
        node - the state node to check against of
        Returns:
        true if the strategy is applicable to the node
      • bind

        public void bind​(StateNode stateNode,
                         elemental.dom.Text htmlNode,
                         BinderContext nodeFactory)
        Description copied from interface: BindingStrategy
        Binds a DOM node to the stateNode using context to create and bind nodes of other types.
        Specified by:
        bind in interface BindingStrategy<elemental.dom.Text>
        Parameters:
        stateNode - the state node to bind, not null
        htmlNode - the DOM node, not null
        nodeFactory - binder context to create and construct HTML nodes of other types