org.ikasan.dashboard.ui.scheduler.component.SchedulerJobSelectDialog Maven / Gradle / Ivy
package org.ikasan.dashboard.ui.scheduler.component;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import org.ikasan.dashboard.ui.general.component.AbstractCloseableResizableDialog;
import org.ikasan.dashboard.ui.scheduler.listener.SchedulerJobSelectedListener;
import org.ikasan.dashboard.ui.util.SystemEventLogger;
import org.ikasan.scheduled.event.service.ScheduledProcessManagementService;
import org.ikasan.spec.metadata.ModuleMetaDataService;
import org.ikasan.spec.module.client.ConfigurationService;
import org.ikasan.spec.module.client.LogStreamingService;
import org.ikasan.spec.module.client.MetaDataService;
import org.ikasan.spec.module.client.ModuleControlService;
import org.ikasan.spec.scheduled.context.model.ContextTemplate;
import org.ikasan.spec.scheduled.job.service.JobInitiationService;
import org.ikasan.spec.scheduled.job.service.SchedulerJobService;
import org.ikasan.spec.scheduled.provision.JobProvisionService;
public class SchedulerJobSelectDialog extends AbstractCloseableResizableDialog {
private SchedulerJobSelectGridWidget schedulerJobSelectGridWidget;
public SchedulerJobSelectDialog(SchedulerJobService schedulerJobService, ContextTemplate contextTemplate, String headerLabel, String bodyLabel) {
this.schedulerJobSelectGridWidget = new SchedulerJobSelectGridWidget(schedulerJobService, contextTemplate, this, bodyLabel);
this.setHeight("90vh");
this.setWidth("90vw");
VerticalLayout layout = new VerticalLayout();
layout.setSizeFull();
layout.add(this.schedulerJobSelectGridWidget);
layout.getStyle().set("padding-bottom", "20px");
super.title.setText(headerLabel);
super.content.add(layout);
}
public void addSchedulerJobSelectedListener(SchedulerJobSelectedListener listener) {
this.schedulerJobSelectGridWidget.addSchedulerJobSelectedListener(listener);
}
public void removeSchedulerJobSelectedListener(SchedulerJobSelectedListener listener) {
this.schedulerJobSelectGridWidget.removeSchedulerJobSelectedListener(listener);
}
}