Search in sources :

Example 1 with Pet

use of com.haulmont.cuba.core.model.Pet in project jmix by jmix-framework.

the class DlcBaseScreen method petsDlLoadDelegate.

@Install(to = "petsDl", target = Target.DATA_LOADER)
private List<Pet> petsDlLoadDelegate(LoadContext<Pet> loadContext) {
    events.add(new LoadEvent("petsDl", loadContext));
    Pet pet = metadata.create(Pet.class);
    pet.setName("Misty");
    return Collections.singletonList(pet);
}
Also used : Pet(com.haulmont.cuba.core.model.Pet) Install(io.jmix.ui.screen.Install)

Aggregations

Pet (com.haulmont.cuba.core.model.Pet)1 Install (io.jmix.ui.screen.Install)1