use of io.jmix.ui.model.impl.ScreenDataXmlLoader in project jmix by jmix-framework.
the class FragmentLoader method loadDataElement.
protected void loadDataElement(Element element) {
Element dataEl = element.element("data");
if (dataEl == null) {
return;
}
ScreenData hostScreenData = null;
ComponentContext parent = getComponentContext().getParent();
while (hostScreenData == null && parent != null) {
hostScreenData = parent.getScreenData();
parent = parent.getParent();
}
ScreenDataXmlLoader screenDataXmlLoader = applicationContext.getBean(ScreenDataXmlLoader.class);
ScreenData screenData = UiControllerUtils.getScreenData(resultComponent.getFrameOwner());
screenDataXmlLoader.load(screenData, dataEl, hostScreenData);
((ComponentLoaderContext) context).setScreenData(screenData);
}
use of io.jmix.ui.model.impl.ScreenDataXmlLoader in project jmix by jmix-framework.
the class WindowLoader method loadScreenData.
protected void loadScreenData(Window window, Element element) {
Element dataEl = element.element("data");
if (dataEl != null) {
ScreenDataXmlLoader screenDataXmlLoader = applicationContext.getBean(ScreenDataXmlLoader.class);
ScreenData screenData = UiControllerUtils.getScreenData(window.getFrameOwner());
screenDataXmlLoader.load(screenData, dataEl, null);
((ComponentLoaderContext) context).setScreenData(screenData);
}
}
Aggregations