Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hpc-workflow-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FIJI
hpc-workflow-manager
Commits
3a95a613
Commit
3a95a613
authored
7 years ago
by
Jan Kožusznik
Browse files
Options
Downloads
Patches
Plain Diff
fix: tool tip for main table
parent
3e264e38
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
haas-spim-benchmark/src/main/java/cz/it4i/fiji/haas_spim_benchmark/ui/BenchmarkSPIMControl.java
+38
-3
38 additions, 3 deletions
...t4i/fiji/haas_spim_benchmark/ui/BenchmarkSPIMControl.java
with
38 additions
and
3 deletions
haas-spim-benchmark/src/main/java/cz/it4i/fiji/haas_spim_benchmark/ui/BenchmarkSPIMControl.java
+
38
−
3
View file @
3a95a613
...
@@ -36,6 +36,7 @@ import cz.it4i.fiji.haas.ui.ProgressDialog;
...
@@ -36,6 +36,7 @@ import cz.it4i.fiji.haas.ui.ProgressDialog;
import
cz.it4i.fiji.haas.ui.ShellRoutines
;
import
cz.it4i.fiji.haas.ui.ShellRoutines
;
import
cz.it4i.fiji.haas.ui.StringValueUpdater
;
import
cz.it4i.fiji.haas.ui.StringValueUpdater
;
import
cz.it4i.fiji.haas.ui.TableCellAdapter
;
import
cz.it4i.fiji.haas.ui.TableCellAdapter
;
import
cz.it4i.fiji.haas.ui.TableCellAdapter.TableCellUpdater
;
import
cz.it4i.fiji.haas.ui.TableViewContextMenu
;
import
cz.it4i.fiji.haas.ui.TableViewContextMenu
;
import
cz.it4i.fiji.haas_java_client.JobState
;
import
cz.it4i.fiji.haas_java_client.JobState
;
import
cz.it4i.fiji.haas_java_client.UploadingFile
;
import
cz.it4i.fiji.haas_java_client.UploadingFile
;
...
@@ -50,8 +51,10 @@ import javafx.fxml.FXML;
...
@@ -50,8 +51,10 @@ import javafx.fxml.FXML;
import
javafx.scene.control.Alert
;
import
javafx.scene.control.Alert
;
import
javafx.scene.control.Alert.AlertType
;
import
javafx.scene.control.Alert.AlertType
;
import
javafx.scene.control.ButtonType
;
import
javafx.scene.control.ButtonType
;
import
javafx.scene.control.TableCell
;
import
javafx.scene.control.TableColumn
;
import
javafx.scene.control.TableColumn
;
import
javafx.scene.control.TableView
;
import
javafx.scene.control.TableView
;
import
javafx.scene.control.Tooltip
;
import
javafx.scene.layout.BorderPane
;
import
javafx.scene.layout.BorderPane
;
import
javafx.scene.layout.Region
;
import
javafx.scene.layout.Region
;
import
net.imagej.updater.util.Progress
;
import
net.imagej.updater.util.Progress
;
...
@@ -332,9 +335,18 @@ public class BenchmarkSPIMControl extends BorderPane implements CloseableControl
...
@@ -332,9 +335,18 @@ public class BenchmarkSPIMControl extends BorderPane implements CloseableControl
private
void
setCellValueFactoryCompletable
(
int
index
,
Function
<
BenchmarkJob
,
CompletableFuture
<
String
>>
mapper
)
{
private
void
setCellValueFactoryCompletable
(
int
index
,
Function
<
BenchmarkJob
,
CompletableFuture
<
String
>>
mapper
)
{
JavaFXRoutines
.
setCellValueFactory
(
jobs
,
index
,
mapper
);
JavaFXRoutines
.
setCellValueFactory
(
jobs
,
index
,
mapper
);
((
TableColumn
<
ObservableBenchmarkJob
,
CompletableFuture
<
String
>>)
jobs
.
getColumns
().
get
(
index
))
((
TableColumn
<
ObservableBenchmarkJob
,
CompletableFuture
<
String
>>)
jobs
.
getColumns
().
get
(
index
))
.
setCellFactory
(
column
->
new
TableCellAdapter
<
ObservableBenchmarkJob
,
CompletableFuture
<
String
>>(
.
setCellFactory
(
column
->
new
TableCellAdapter
<
ObservableBenchmarkJob
,
CompletableFuture
<
String
>>
//
new
FutureValueUpdater
<
ObservableBenchmarkJob
,
String
,
CompletableFuture
<
String
>>(
(
//
new
StringValueUpdater
<
ObservableBenchmarkJob
>(),
executorServiceFX
)));
new
P_TableCellUpdaterDecoratorWithToolTip
<>
//
(
//
new
FutureValueUpdater
<
ObservableBenchmarkJob
,
String
,
CompletableFuture
<
String
>>
//
(
//
new
StringValueUpdater
<
ObservableBenchmarkJob
>(),
executorServiceFX
//
),
//
"Doubleclick to open Dashboard"
)
)
);
}
}
private
void
openJobDetailsWindow
(
BenchmarkJob
job
)
{
private
void
openJobDetailsWindow
(
BenchmarkJob
job
)
{
...
@@ -348,4 +360,27 @@ public class BenchmarkSPIMControl extends BorderPane implements CloseableControl
...
@@ -348,4 +360,27 @@ public class BenchmarkSPIMControl extends BorderPane implements CloseableControl
private
interface
P_JobAction
{
private
interface
P_JobAction
{
public
void
doAction
(
Progress
p
)
throws
IOException
;
public
void
doAction
(
Progress
p
)
throws
IOException
;
}
}
private
class
P_TableCellUpdaterDecoratorWithToolTip
<
S
,
T
>
implements
TableCellUpdater
<
S
,
T
>
{
private
final
TableCellUpdater
<
S
,
T
>
decorated
;
private
final
String
toolTipText
;
public
P_TableCellUpdaterDecoratorWithToolTip
(
TableCellUpdater
<
S
,
T
>
decorated
,
String
toolTipText
)
{
this
.
decorated
=
decorated
;
this
.
toolTipText
=
toolTipText
;
}
@Override
public
void
accept
(
TableCell
<?,
?>
cell
,
T
value
,
boolean
empty
)
{
decorated
.
accept
(
cell
,
value
,
empty
);
cell
.
setTooltip
(
new
Tooltip
(
toolTipText
));
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment