Interface FieldHandlerFactory

  • All Known Implementing Classes:
    DefaultFieldHandlerFactory

    public interface FieldHandlerFactory

    Definition of an interface for objects that are able to create FieldHandler objects.

    An implementation of this interface is used by input components creating tags during a builder operation. It creates the handler objects that are stored in the constructed Form object.

    Version:
    $Id: FieldHandlerFactory.java 205 2012-01-29 18:29:57Z oheger $
    Author:
    Oliver Heger
    • Method Detail

      • createFieldHandler

        FieldHandler createFieldHandler​(InputComponentTag tag,
                                        ComponentHandler<?> componentHandler)
                                 throws FormBuilderException
        Creates a new field handler object. The component handler to be associated with the new field handler is directly passed. All other necessary information can be obtained from the specified tag handler tag.
        Parameters:
        tag - the input component tag
        componentHandler - the component handler
        Returns:
        the new field handler
        Throws:
        FormBuilderException - if an error occurs