Search in sources :

Example 11 with Presentation

use of com.haulmont.cuba.security.entity.Presentation in project cuba by cuba-platform.

the class WebAbstractTable method applyPresentation.

@Override
public void applyPresentation(Object id) {
    if (isUsePresentations() && presentations != null) {
        Presentation p = presentations.getPresentation(id);
        applyPresentation(p);
    } else {
        throw new UnsupportedOperationException("Component doesn't use presentations");
    }
}
Also used : Presentation(com.haulmont.cuba.security.entity.Presentation)

Aggregations

Presentation (com.haulmont.cuba.security.entity.Presentation)11 Presentations (com.haulmont.cuba.gui.presentations.Presentations)6 DataService (com.haulmont.cuba.core.app.DataService)1 User (com.haulmont.cuba.security.entity.User)1 UserSession (com.haulmont.cuba.security.global.UserSession)1 CubaMenuBar (com.haulmont.cuba.web.toolkit.ui.CubaMenuBar)1 Element (org.dom4j.Element)1