Skip to content
Snippets Groups Projects
Commit 027cd211 authored by Jan Kožusznik's avatar Jan Kožusznik
Browse files

add to UI

parent 9fe1f07a
Branches
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="912.0" xmlns="http://javafx.com/javafx/8.0.65" xmlns:fx="http://javafx.com/fxml/1" fx:controller="cz.it4i.fiji.haas_spim_benchmark.ui.SPIMPipelineProgressViewController"> <BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="912.0" xmlns="http://javafx.com/javafx/8.0.65" xmlns:fx="http://javafx.com/fxml/1" fx:controller="cz.it4i.fiji.haas_spim_benchmark.ui.SPIMPipelineProgressViewController">
<center> <center>
<TableView fx:id="jobs" prefHeight="400.0" prefWidth="675.0" BorderPane.alignment="CENTER"> <TableView fx:id="tasks" prefHeight="400.0" prefWidth="675.0" BorderPane.alignment="CENTER">
<columns> <columns>
<TableColumn prefWidth="101.0" text="Task name" /> <TableColumn prefWidth="101.0" text="Task name" />
</columns> </columns>
......
...@@ -39,12 +39,12 @@ public class SPIMPipelineProgressViewController implements FXFrame.Controller { ...@@ -39,12 +39,12 @@ public class SPIMPipelineProgressViewController implements FXFrame.Controller {
}); });
timer = new Timer(); timer = new Timer();
registry = new ObservableTaskRegistry(task -> tasks.getItems().remove(registry.get(task)));
fillTable();
} }
public void setBenchmarkJob(BenchmarkJob job) { public void setBenchmarkJob(BenchmarkJob job) {
this.job = job; this.job = job;
registry = new ObservableTaskRegistry(task -> tasks.getItems().remove(registry.get(task)));
fillTable();
} }
private void fillTable() { private void fillTable() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment