Moved minutes and second labels in EffortDuration Picker to tooltipText attribute

FEA: ItEr72S06CalendarAdminInterfaceItEr70S07
This commit is contained in:
Lorenzo Tilve Álvaro 2011-03-09 17:30:15 +01:00
parent 000f701dc6
commit 731057c555

View file

@ -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));