Moved minutes and second labels in EffortDuration Picker to tooltipText attribute
FEA: ItEr72S06CalendarAdminInterfaceItEr70S07
This commit is contained in:
parent
000f701dc6
commit
731057c555
1 changed files with 8 additions and 3 deletions
|
|
@ -59,17 +59,22 @@ public class EffortDurationPicker extends Hbox {
|
||||||
minutes = new Spinner();
|
minutes = new Spinner();
|
||||||
minutes.setCols(2);
|
minutes.setCols(2);
|
||||||
setRangeFor(minutes, 0, 59);
|
setRangeFor(minutes, 0, 59);
|
||||||
appendWithLabel(hours, _("Hours"));
|
appendWithTooltipText(hours, _("Hours"));
|
||||||
appendWithLabel(minutes, _("Minutes"));
|
appendWithTooltipText(minutes, _("Minutes"));
|
||||||
|
|
||||||
if (withseconds) {
|
if (withseconds) {
|
||||||
seconds = new Spinner();
|
seconds = new Spinner();
|
||||||
seconds.setCols(2);
|
seconds.setCols(2);
|
||||||
setRangeFor(seconds, 0, 59);
|
setRangeFor(seconds, 0, 59);
|
||||||
appendWithLabel(seconds, _("Seconds"));
|
appendWithTooltipText(seconds, _("Seconds"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void appendWithTooltipText(Spinner spinner, String label) {
|
||||||
|
spinner.setTooltiptext(label);
|
||||||
|
appendChild(spinner);
|
||||||
|
}
|
||||||
|
|
||||||
private void appendWithLabel(Spinner spinner, String label) {
|
private void appendWithLabel(Spinner spinner, String label) {
|
||||||
Vbox column = new Vbox();
|
Vbox column = new Vbox();
|
||||||
column.appendChild(new Label(label));
|
column.appendChild(new Label(label));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue