@@ -8,12 +8,14 @@ public class RunDetailsItem {
8
8
private final String text ;
9
9
private final String href ;
10
10
private final boolean separator ;
11
+ private final String tooltip ;
11
12
12
- RunDetailsItem (String icon , String text , String href , boolean separator ) {
13
+ RunDetailsItem (String icon , String text , String href , boolean separator , String tooltip ) {
13
14
this .icon = icon ;
14
15
this .text = text ;
15
16
this .href = href ;
16
17
this .separator = separator ;
18
+ this .tooltip = tooltip ;
17
19
}
18
20
19
21
public String getIcon () {
@@ -28,6 +30,10 @@ public String getHref() {
28
30
return href ;
29
31
}
30
32
33
+ public String getTooltip () {
34
+ return tooltip ;
35
+ }
36
+
31
37
public boolean isSeparator () {
32
38
return separator ;
33
39
}
@@ -37,6 +43,7 @@ public static class Builder {
37
43
private String icon ;
38
44
private String text ;
39
45
private String href ;
46
+ private String tooltip ;
40
47
private boolean separator ;
41
48
42
49
public Builder text (String text ) {
@@ -49,6 +56,11 @@ public Builder icon(String icon) {
49
56
return this ;
50
57
}
51
58
59
+ public Builder tooltip (String tooltip ) {
60
+ this .tooltip = tooltip ;
61
+ return this ;
62
+ }
63
+
52
64
public Builder ionicon (String ionicon ) {
53
65
this .icon = String .format ("symbol-%s plugin-ionicons-api" , ionicon );
54
66
return this ;
@@ -68,7 +80,7 @@ public RunDetailsItem build() {
68
80
if (!separator ) {
69
81
requireNonNull (icon );
70
82
}
71
- return new RunDetailsItem (icon , text , href , separator );
83
+ return new RunDetailsItem (icon , text , href , separator , tooltip );
72
84
}
73
85
}
74
86
}
0 commit comments