How to provide components like GroupBox
to screen fragment
, where its injected with @Autowired
or from Fragment to Parrent, where its injected?
The fragment can get the component of the UI of the parent screen by ID.
For example, such a code a fragment::
@Subscribe(target = Target.PARENT_CONTROLLER)
public void onAfterShow(Screen.AfterShowEvent event) {
Component fromParent = event.getSource().getWindow().getOwnComponent("scrollBox");
...
}