Search in sources :

Example 1 with CertCaseDtoProvider

use of com.evolveum.midpoint.web.page.admin.certification.dto.CertCaseDtoProvider in project midpoint by Evolveum.

the class PageCertCampaign method initTableLayout.

private void initTableLayout(Form mainForm) {
    CertCaseDtoProvider provider = new CertCaseDtoProvider(PageCertCampaign.this);
    provider.setQuery(createCaseQuery());
    provider.setCampaignOid(campaignOid);
    // default sorting
    provider.setSort(AccessCertificationCaseType.F_OBJECT_REF.getLocalPart(), SortOrder.ASCENDING);
    int itemsPerPage = (int) getItemsPerPage(UserProfileStorage.TableId.PAGE_CERT_CAMPAIGN_OUTCOMES_PANEL);
    BoxedTablePanel table = new BoxedTablePanel<>(ID_OUTCOMES_TABLE, provider, initColumns(), UserProfileStorage.TableId.PAGE_CERT_CAMPAIGN_OUTCOMES_PANEL, itemsPerPage);
    table.setShowPaging(true);
    table.setOutputMarkupId(true);
    table.setItemsPerPage(itemsPerPage);
    mainForm.add(table);
}
Also used : CertCaseDtoProvider(com.evolveum.midpoint.web.page.admin.certification.dto.CertCaseDtoProvider) BoxedTablePanel(com.evolveum.midpoint.web.component.data.BoxedTablePanel)

Aggregations

BoxedTablePanel (com.evolveum.midpoint.web.component.data.BoxedTablePanel)1 CertCaseDtoProvider (com.evolveum.midpoint.web.page.admin.certification.dto.CertCaseDtoProvider)1