Interface ComponentDefaultProvider

    • Method Detail

      • defaultBinding

         parameterName,
                               ComponentResources resources)
        Checks to see if the container of the component (identified by its resources) contains a property matching the component's id. If so, a binding for that property is returned. This is usually the default for a Field's value parameter (or equivalent).
        Parameters:
        parameterName - the name of the parameter
        resources - the resources of the component for which a binding is needed
        Returns:
        the binding, or null if the container does not have a matching property
      • defaultValueEncoder

         parameterName,
                                         ComponentResources resources)
        Gets or creates a value encoder based on the type of the named parameter. ValueEncoders are cached based on type.
        Parameters:
        parameterName - the name of the parameter whose type is used to locate a ValueEncoderFactory
        resources - the resources of the component, from which parameter and its type are extracted
        Returns:
        the value encoder, or null if the type of the parameter is not known
      • defaultTranslatorBinding

         parameterName,
                                         ComponentResources resources)
        Provides a binding that itself provides the field translator.
        Parameters:
        parameterName -
        resources -
        Returns:
        binding that provides the FieldTranslator
      • defaultValidatorBinding

         parameterName,
                                        ComponentResources resources)
        Provides a binding that itself provides the field translator.
        Parameters:
        parameterName -
        resources -
        Returns:
        binding that provides the FieldTranslator