Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Add ScreenConfigurer callback to ScreenFacet #662

Closed
glebfox opened this issue Sep 17, 2021 · 0 comments
Closed

Add ScreenConfigurer callback to ScreenFacet #662

glebfox opened this issue Sep 17, 2021 · 0 comments
Assignees
Milestone

Comments

@glebfox
Copy link
Contributor

glebfox commented Sep 17, 2021

Currently, ScreenFacets have only optionsProvider callback. Since the recommended way of passing parameters to an opened screen is to use public setters of the screen controller, ScreenFacet requires the setScreenConfigurer method.

Solution

the void setScreenConfigurer(Consumer<S> screenConfigurer) method has been added. The preferred way to set the configurer is using a controller method annotated with @Install, e.g:

@Install(to = "test", subject = "screenConfigurer")
private void userBrowseFacetScreenConfigurer(UserBrowse userBrowse) {
    userBrowse.setSomeParam("some value");
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants