44 lines
1.1 KiB
Java
44 lines
1.1 KiB
Java
package org.gcube.portlets.user.speciesdiscovery.client.job.gislayer;
|
|
|
|
|
|
import org.gcube.portlets.user.speciesdiscovery.shared.JobGisLayerModel;
|
|
|
|
import com.extjs.gxt.ui.client.widget.Window;
|
|
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
|
|
|
|
public class GisLayerWindowInfoJobsSpecies extends Window{
|
|
|
|
private GisLayerJobsInfoContainer jobInfo = new GisLayerJobsInfoContainer("");
|
|
|
|
public GisLayerWindowInfoJobsSpecies(GisLayerJobsInfoContainer jobInfoContainer) {
|
|
setModal(true);
|
|
setSize(450, 300);
|
|
this.jobInfo = jobInfoContainer;
|
|
add(jobInfo);
|
|
}
|
|
|
|
public GisLayerWindowInfoJobsSpecies() {
|
|
setModal(true);
|
|
setSize(450, 300);
|
|
setLayout(new FitLayout());
|
|
add(jobInfo);
|
|
}
|
|
|
|
|
|
public void setWindowTitle(String title) {
|
|
this.setHeading(title);
|
|
|
|
}
|
|
|
|
public void updateDescription(JobGisLayerModel jobModel) {
|
|
|
|
String description = "\nName: \n" + jobModel.getJobName() + "\n";
|
|
|
|
description += "\n\nStart Time: \n" + jobModel.getSubmitTime();
|
|
description += "\n\nEnd Time: \n" + jobModel.getEndTime();
|
|
|
|
this.jobInfo.updateDescription(description);
|
|
}
|
|
|
|
}
|