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.setCols(2);
|
||||
setRangeFor(minutes, 0, 59);
|
||||
appendWithLabel(hours, _("Hours"));
|
||||
appendWithLabel(minutes, _("Minutes"));
|
||||
appendWithTooltipText(hours, _("Hours"));
|
||||
appendWithTooltipText(minutes, _("Minutes"));
|
||||
|
||||
if (withseconds) {
|
||||
seconds = new Spinner();
|
||||
seconds.setCols(2);
|
||||
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) {
|
||||
Vbox column = new Vbox();
|
||||
column.appendChild(new Label(label));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue