Search in sources :

Example 1 with WindowConfig

use of io.jmix.ui.WindowConfig in project jmix by jmix-framework.

the class AddAction method getWindowId.

/**
 * @return lookup screen id
 */
public String getWindowId() {
    if (windowId != null) {
        return windowId;
    } else {
        WindowConfig windowConfig = AppBeans.get(WindowConfig.class);
        MetaClass metaClass = target.getDatasource().getMetaClass();
        return windowConfig.getAvailableLookupScreenId(metaClass);
    }
}
Also used : WindowConfig(io.jmix.ui.WindowConfig) MetaClass(io.jmix.core.metamodel.model.MetaClass)

Example 2 with WindowConfig

use of io.jmix.ui.WindowConfig in project jmix by jmix-framework.

the class EditAction method getWindowId.

/**
 * @return editor screen identifier
 */
public String getWindowId() {
    if (windowId != null) {
        return windowId;
    } else {
        MetaClass metaClass = target.getDatasource().getMetaClass();
        WindowConfig windowConfig = AppBeans.get(WindowConfig.class);
        return windowConfig.getEditorScreenId(metaClass);
    }
}
Also used : WindowConfig(io.jmix.ui.WindowConfig) MetaClass(io.jmix.core.metamodel.model.MetaClass)

Example 3 with WindowConfig

use of io.jmix.ui.WindowConfig in project jmix by jmix-framework.

the class CreateAction method getWindowId.

/**
 * @return editor screen identifier
 */
public String getWindowId() {
    if (windowId != null) {
        return windowId;
    } else {
        MetaClass metaClass = target.getDatasource().getMetaClass();
        WindowConfig windowConfig = AppBeans.get(WindowConfig.class);
        return windowConfig.getEditorScreenId(metaClass);
    }
}
Also used : WindowConfig(io.jmix.ui.WindowConfig) MetaClass(io.jmix.core.metamodel.model.MetaClass)

Aggregations

MetaClass (io.jmix.core.metamodel.model.MetaClass)3 WindowConfig (io.jmix.ui.WindowConfig)3