Search in sources :

Example 1 with DebugSearchFragment

use of com.evolveum.midpoint.web.page.admin.configuration.component.DebugSearchFragment in project midpoint by Evolveum.

the class PageDebugList method create.

private void create(RepositoryObjectDataProvider provider) {
    Form mainForm = (Form) get(ID_MAIN_FORM);
    BoxedTablePanel<DebugObjectItem> table = new BoxedTablePanel<>(ID_TABLE, provider, createColumns(), UserProfileStorage.TableId.CONF_DEBUG_LIST_PANEL) {

        private static final long serialVersionUID = 1L;

        @Override
        protected WebMarkupContainer createHeader(String headerId) {
            DebugSearchFragment headerFragment = new DebugSearchFragment(headerId, ID_TABLE_HEADER, PageDebugList.this, searchModel, showAllItemsModel) {

                private static final long serialVersionUID = 1L;

                @Override
                protected void searchPerformed(AjaxRequestTarget target) {
                    listObjectsPerformed(target);
                }
            };
            headerFragment.setOutputMarkupId(true);
            return headerFragment;
        }
    };
    table.setOutputMarkupId(true);
    ConfigurationStorage storage = getSessionStorage().getConfiguration();
    table.setCurrentPage(storage.getPaging());
    mainForm.addOrReplace(table);
}
Also used : DebugSearchFragment(com.evolveum.midpoint.web.page.admin.configuration.component.DebugSearchFragment) AjaxRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget) ConfigurationStorage(com.evolveum.midpoint.web.session.ConfigurationStorage) MidpointForm(com.evolveum.midpoint.web.component.form.MidpointForm) Form(org.apache.wicket.markup.html.form.Form) DebugObjectItem(com.evolveum.midpoint.web.page.admin.configuration.dto.DebugObjectItem) BoxedTablePanel(com.evolveum.midpoint.web.component.data.BoxedTablePanel)

Example 2 with DebugSearchFragment

use of com.evolveum.midpoint.web.page.admin.configuration.component.DebugSearchFragment in project midpoint by Evolveum.

the class PageDebugList method hasToZip.

private boolean hasToZip() {
    BoxedTablePanel table = (BoxedTablePanel) getListTable();
    DebugSearchFragment header = (DebugSearchFragment) table.getHeader();
    AjaxCheckBox zipCheck = header.getZipCheck();
    return zipCheck.getModelObject();
}
Also used : DebugSearchFragment(com.evolveum.midpoint.web.page.admin.configuration.component.DebugSearchFragment) AjaxCheckBox(org.apache.wicket.ajax.markup.html.form.AjaxCheckBox) BoxedTablePanel(com.evolveum.midpoint.web.component.data.BoxedTablePanel)

Aggregations

BoxedTablePanel (com.evolveum.midpoint.web.component.data.BoxedTablePanel)2 DebugSearchFragment (com.evolveum.midpoint.web.page.admin.configuration.component.DebugSearchFragment)2 MidpointForm (com.evolveum.midpoint.web.component.form.MidpointForm)1 DebugObjectItem (com.evolveum.midpoint.web.page.admin.configuration.dto.DebugObjectItem)1 ConfigurationStorage (com.evolveum.midpoint.web.session.ConfigurationStorage)1 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)1 AjaxCheckBox (org.apache.wicket.ajax.markup.html.form.AjaxCheckBox)1 Form (org.apache.wicket.markup.html.form.Form)1