Search in sources :

Example 1 with Presentations

use of com.haulmont.cuba.gui.presentation.Presentations in project jmix by jmix-framework.

the class WebTable method createTablePresentations.

@Override
protected TablePresentations createTablePresentations() {
    Presentations presentations = applicationContext.getBean(Presentations.class, this);
    presentationsDelegate = applicationContext.getBean(LegacyPresentationsDelegate.class, this, presentations, getSettingsBinder());
    return presentations;
}
Also used : LegacyPresentationsDelegate(com.haulmont.cuba.gui.presentation.LegacyPresentationsDelegate) Presentations(com.haulmont.cuba.gui.presentation.Presentations) TablePresentations(io.jmix.ui.presentation.TablePresentations)

Example 2 with Presentations

use of com.haulmont.cuba.gui.presentation.Presentations in project jmix by jmix-framework.

the class WebGroupTable method createTablePresentations.

@Override
protected TablePresentations createTablePresentations() {
    Presentations presentations = applicationContext.getBean(Presentations.class, this);
    presentationsDelegate = applicationContext.getBean(LegacyPresentationsDelegate.class, this, presentations, getSettingsBinder());
    return presentations;
}
Also used : LegacyPresentationsDelegate(com.haulmont.cuba.gui.presentation.LegacyPresentationsDelegate) Presentations(com.haulmont.cuba.gui.presentation.Presentations) TablePresentations(io.jmix.ui.presentation.TablePresentations)

Example 3 with Presentations

use of com.haulmont.cuba.gui.presentation.Presentations in project jmix by jmix-framework.

the class CubaSavePresentationAction method setSettingsToPresentation.

@Override
protected void setSettingsToPresentation(TablePresentations presentations, TablePresentation current) {
    if (table.getFrame().getFrameOwner() instanceof CubaLegacySettings) {
        Presentations ps = (Presentations) presentations;
        Element e = ps.getSettings(current);
        ((HasSettings) table).saveSettings(e);
        ps.setSettings(current, e);
    } else {
        super.setSettingsToPresentation(presentations, current);
    }
}
Also used : Element(org.dom4j.Element) CubaLegacySettings(com.haulmont.cuba.settings.CubaLegacySettings) HasSettings(com.haulmont.cuba.gui.components.HasSettings) TablePresentations(io.jmix.ui.presentation.TablePresentations) Presentations(com.haulmont.cuba.gui.presentation.Presentations)

Example 4 with Presentations

use of com.haulmont.cuba.gui.presentation.Presentations in project jmix by jmix-framework.

the class WebTreeTable method createTablePresentations.

@Override
protected TablePresentations createTablePresentations() {
    Presentations presentations = applicationContext.getBean(Presentations.class, this);
    presentationsDelegate = applicationContext.getBean(LegacyPresentationsDelegate.class, this, presentations, getSettingsBinder());
    return presentations;
}
Also used : LegacyPresentationsDelegate(com.haulmont.cuba.gui.presentation.LegacyPresentationsDelegate) Presentations(com.haulmont.cuba.gui.presentation.Presentations) TablePresentations(io.jmix.ui.presentation.TablePresentations)

Aggregations

Presentations (com.haulmont.cuba.gui.presentation.Presentations)4 TablePresentations (io.jmix.ui.presentation.TablePresentations)4 LegacyPresentationsDelegate (com.haulmont.cuba.gui.presentation.LegacyPresentationsDelegate)3 HasSettings (com.haulmont.cuba.gui.components.HasSettings)1 CubaLegacySettings (com.haulmont.cuba.settings.CubaLegacySettings)1 Element (org.dom4j.Element)1