Interface FormCollector
- All Known Implementing Classes:
FormCollectorImpl
public interface FormCollector
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsForm(String id) default FormgetOrCreateForm(String id, Consumer<FormImpl> afterCreateConsumer) voidremoveForm(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
-