Search in sources :

Example 1 with LoadDataBeforeShow

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();
    }
}
Also used : LoadDataBeforeShow(com.haulmont.cuba.gui.screen.LoadDataBeforeShow) ScreenData(com.haulmont.cuba.gui.model.ScreenData)

Aggregations

ScreenData (com.haulmont.cuba.gui.model.ScreenData)1 LoadDataBeforeShow (com.haulmont.cuba.gui.screen.LoadDataBeforeShow)1