Search in sources :

Example 1 with UiController

use of com.haulmont.cuba.gui.screen.UiController in project cuba by cuba-platform.

the class UiControllerClassMeta method getControllerId.

protected String getControllerId(Class<? extends FrameOwner> screenClass) {
    UiController uiController = screenClass.getAnnotation(UiController.class);
    String idAttr = null;
    String valueAttr = null;
    if (uiController != null) {
        idAttr = uiController.id();
        valueAttr = uiController.value();
    }
    return UiDescriptorUtils.getInferredScreenId(idAttr, valueAttr, screenClass.getName());
}
Also used : UiController(com.haulmont.cuba.gui.screen.UiController)

Aggregations

UiController (com.haulmont.cuba.gui.screen.UiController)1