use of io.jmix.datatoolsui.screen.entityinfo.EntityInfoWindow in project jmix by jmix-framework.
the class EditorScreenShowEntityInfoAction method execute.
@Override
public void execute(Screen screen) {
if (!(screen instanceof EditorScreen)) {
throw new IllegalArgumentException("Screen must be instance of EditorScreen");
}
Object entity = ((EditorScreen<?>) screen).getEditedEntity();
Screens screens = UiControllerUtils.getScreenContext(screen).getScreens();
EntityInfoWindow infoWindow = screens.create(EntityInfoWindow.class);
infoWindow.setEntity(entity);
infoWindow.show();
}
use of io.jmix.datatoolsui.screen.entityinfo.EntityInfoWindow in project jmix by jmix-framework.
the class ShowEntityInfoAction method showInfo.
public void showInfo(Object entity, Component.BelongToFrame component) {
Screens screens = ComponentsHelper.getScreenContext(component).getScreens();
EntityInfoWindow screen = screens.create(EntityInfoWindow.class);
screen.setEntity(entity);
screen.show();
}
Aggregations