Interface FormCollector
- All Known Implementing Classes:
FormCollectorImpl
public interface FormCollector
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsForm
(String id) default Form
getOrCreateForm
(String id, Consumer<FormImpl> afterCreateConsumer) void
removeForm
(String id) remove a form with a specific id from the collector
-
Method Details
-
getOrCreateForm
- See Also:
-
getOrCreateForm
- Parameters:
id
- the id of the formafterCreateConsumer
- 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
remove a form with a specific id from the collector -
containsForm
- Returns:
- true if a form with the given id exists
-
getAllForms
Collection<Form> getAllForms()- Returns:
- all forms
-