Annotation Interface SubComponent
Component fields annotated with SubComponent
will be initialized and rendered with the controller they are defined in.
The instance still needs to be provided by the user oder using dependency injection.
The instance will be used if the fxml specifies a subcomponent with the same type.
Provider fields annotated with SubComponent
can be used if the fxml specifies a subcomponent with the same type.
Instances manually provided by the provider using get()
will NOT be initialized or rendered!
When a subcomponent is specified in the fxml, the framework will look for any component field annotated with @SubController. If a matching field is found, the instance will be used as the subcomponent. If no matching field is found, the framework will look for any provider field annotated with @SubController.