PopulatorInterface

public interface PopulatorInterface

Its responsible for populating the FormInterface or FieldInterface provided.

The populator uses providers to populate each field presented to the populator.

Methods

populate

void populate(FormInterface form)

Tell the populator to start the population on the specified form.

Parameters:
  • form
Throws:

populate

void populate(FieldInterface field)

Tell the populator to start the population on the specified field.

Parameters:
  • field
Throws:

setFieldProvider

void setFieldProvider(String name, ProviderInterface provider)

Set the provider to use the populator a specific field.

Parameters:
  • name – the name of the field that will use the provider given.
  • provider – the provider to use instead of the default onces.