com.sencha.gxt.legacy.client.binding

Class Bindings

Package class diagram package Bindings
    • Constructor Detail

      • Bindings

        public Bindings()
        Creates a new bindings instance.
    • Method Detail

      • addFieldBinding

        public void addFieldBinding(FieldBinding binding)
        Adds a field binding.
        Parameters:
        binding - the binding instance to add
      • bind

        public void bind(ModelData model)
        Binds the model instance.
        Parameters:
        model - the model
      • clear

        public void clear()
        Clears all fields by setting the value for each field to null.
      • getBinding

        public FieldBinding getBinding(Field<?> field)
        Returns the field binding for the given field.
        Parameters:
        field - the field
        Returns:
        the field binding or null of no match
      • getBindings

        public Collection<FieldBinding> getBindings()
        Returns all bindings.
        Returns:
        the collection of bindings
      • getModel

        public ModelData getModel()
        Returns the currently bound model;
        Returns:
        the currently bound model;
      • removeFieldBinding

        public void removeFieldBinding(FieldBinding binding)
        Removes a field binding.
        Parameters:
        binding - the binding instance to remove
      • unbind

        public void unbind()
        Unbinds the current model.

Copyright © 2015. All rights reserved.