use of io.jmix.ui.screen.ScreenOptions in project jmix by jmix-framework.
the class EditorBuilderProcessor method getOptionsForScreen.
@Override
protected <E> ScreenOptions getOptionsForScreen(String editorScreenId, E entity, EditorBuilder<E> builder) {
ScreenOptions options = super.getOptionsForScreen(editorScreenId, entity, builder);
WindowInfo windowInfo = windowConfig.getWindowInfo(editorScreenId);
if (LegacyFrame.class.isAssignableFrom(windowInfo.getControllerClass()) && options == FrameOwner.NO_OPTIONS) {
HashMap<String, Object> paramsMap = new HashMap<>();
paramsMap.put(WindowParams.ITEM.name(), entity);
options = new MapScreenOptions(paramsMap);
}
return options;
}
use of io.jmix.ui.screen.ScreenOptions in project jmix by jmix-framework.
the class ActionScreenInitializer method initBuilder.
public RelatedEntitiesBuilder initBuilder(RelatedEntitiesBuilder builder) {
if (screenClass != null) {
builder = builder.withScreenClass(screenClass);
}
if (screenId != null) {
builder = builder.withScreenId(screenId);
}
if (screenOptionsSupplier != null) {
ScreenOptions screenOptions = screenOptionsSupplier.get();
builder = builder.withOptions(screenOptions);
}
if (openMode != null) {
builder = builder.withOpenMode(openMode);
}
return builder;
}
Aggregations