use of com.haulmont.cuba.gui.screen.LoadDataBeforeShow in project cuba by cuba-platform.
the class AnnotationBasedLoaderBeforeShow method loadData.
@Override
public void loadData(Screen screen) {
LoadDataBeforeShow annotation = screen.getClass().getAnnotation(LoadDataBeforeShow.class);
if (annotation != null && annotation.value()) {
ScreenData screenData = UiControllerUtils.getScreenData(screen);
screenData.loadAll();
}
}
Aggregations