Interface FormCollector

All Known Implementing Classes:
FormCollectorImpl

public interface FormCollector
  • Method Details

    • getOrCreateForm

      default Form getOrCreateForm(String id)
      See Also:
    • getOrCreateForm

      Form getOrCreateForm(String id, Consumer<FormImpl> afterCreateConsumer)
      Parameters:
      id - the id of the form
      afterCreateConsumer - consumer that runs on the form after it is created
      Returns:
      the form with the given id - create it if it doesn't exist yet
    • removeForm

      void removeForm(String id)
      remove a form with a specific id from the collector
    • containsForm

      boolean containsForm(String id)
      Returns:
      true if a form with the given id exists
    • getAllForms

      Collection<Form> getAllForms()
      Returns:
      all forms