Search in sources :

Example 1 with ViewConfiguration

use of de.symeda.sormas.ui.utils.ViewConfiguration in project SORMAS-Project by hzi-braunschweig.

the class TravelEntryGrid method reload.

public void reload() {
    if (getSelectionModel().isUserSelectionAllowed()) {
        deselectAll();
    }
    ViewConfiguration viewConfiguration = ViewModelProviders.of(TravelEntriesView.class).get(ViewConfiguration.class);
    if (viewConfiguration.isInEagerMode()) {
        setEagerDataProvider();
    }
    getDataProvider().refreshAll();
}
Also used : ViewConfiguration(de.symeda.sormas.ui.utils.ViewConfiguration)

Example 2 with ViewConfiguration

use of de.symeda.sormas.ui.utils.ViewConfiguration in project SORMAS-Project by hzi-braunschweig.

the class UserGrid method reload.

public void reload() {
    if (getSelectionModel().isUserSelectionAllowed()) {
        deselectAll();
    }
    ViewConfiguration viewConfiguration = ViewModelProviders.of(UsersView.class).get(ViewConfiguration.class);
    if (viewConfiguration.isInEagerMode()) {
        setEagerDataProvider();
    }
    getDataProvider().refreshAll();
}
Also used : ViewConfiguration(de.symeda.sormas.ui.utils.ViewConfiguration)

Example 3 with ViewConfiguration

use of de.symeda.sormas.ui.utils.ViewConfiguration in project SORMAS-Project by hzi-braunschweig.

the class EventGroupsGrid method reload.

public void reload() {
    if (getSelectionModel().isUserSelectionAllowed()) {
        deselectAll();
    }
    ViewConfiguration viewConfiguration = ViewModelProviders.of(EventsView.class).get(ViewConfiguration.class);
    if (viewConfiguration.isInEagerMode()) {
        setEagerDataProvider();
    }
    getDataProvider().refreshAll();
}
Also used : ViewConfiguration(de.symeda.sormas.ui.utils.ViewConfiguration)

Aggregations

ViewConfiguration (de.symeda.sormas.ui.utils.ViewConfiguration)3