Search in sources :

Example 26 with TablePanel

use of com.evolveum.midpoint.web.component.data.TablePanel in project midpoint by Evolveum.

the class TaskErrorsTabPanel method initLayout.

private void initLayout(final IModel<TaskDto> taskDtoModel, PageBase pageBase) {
    ObjectDataProvider<TaskErrorDto, ObjectType> provider = new ObjectDataProvider<TaskErrorDto, ObjectType>(TaskErrorsTabPanel.this, ObjectType.class) {

        private static final long serialVersionUID = 1L;

        @Override
        public TaskErrorDto createDataObjectWrapper(PrismObject<ObjectType> obj) {
            return convertToTaskErrorDto(obj.asObjectable(), taskDtoModel);
        }

        @Override
        public void setQuery(ObjectQuery query) {
            super.setQuery(query);
        }

        @Override
        public ObjectQuery getQuery() {
            return createContentQuery(taskDtoModel.getObject().getOid(), pageBase);
        }
    };
    TablePanel resultTablePanel = new TablePanel<>(ID_TASK_ERRORS, provider, initColumns());
    resultTablePanel.setStyle("padding-top: 0px;");
    resultTablePanel.setShowPaging(false);
    resultTablePanel.setOutputMarkupId(true);
    add(resultTablePanel);
}
Also used : PrismObject(com.evolveum.midpoint.prism.PrismObject) TaskErrorDto(com.evolveum.midpoint.web.page.admin.server.dto.TaskErrorDto) ObjectDataProvider(com.evolveum.midpoint.web.component.data.ObjectDataProvider) ObjectQuery(com.evolveum.midpoint.prism.query.ObjectQuery) TablePanel(com.evolveum.midpoint.web.component.data.TablePanel)

Aggregations

TablePanel (com.evolveum.midpoint.web.component.data.TablePanel)26 ObjectDataProvider (com.evolveum.midpoint.web.component.data.ObjectDataProvider)13 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)9 IColumn (org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn)9 ListDataProvider (com.evolveum.midpoint.web.component.util.ListDataProvider)8 ArrayList (java.util.ArrayList)8 AjaxButton (com.evolveum.midpoint.web.component.AjaxButton)7 DataTable (org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable)7 VisibleEnableBehaviour (com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour)6 List (java.util.List)5 WebMarkupContainer (org.apache.wicket.markup.html.WebMarkupContainer)4 Label (org.apache.wicket.markup.html.basic.Label)4 ObjectQuery (com.evolveum.midpoint.prism.query.ObjectQuery)3 LoggingDto (com.evolveum.midpoint.web.page.admin.configuration.dto.LoggingDto)3 ClassLoggerConfigurationType (com.evolveum.midpoint.xml.ns._public.common.common_3.ClassLoggerConfigurationType)3 PageBase (com.evolveum.midpoint.gui.api.page.PageBase)2 ObjectSearchDto (com.evolveum.midpoint.web.page.admin.configuration.dto.ObjectSearchDto)2 ConfigurationStorage (com.evolveum.midpoint.web.session.ConfigurationStorage)2 ObjectType (com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType)2 AttributeModifier (org.apache.wicket.AttributeModifier)2