public EffortDurationPicker() {
this(false);
}
public EffortDurationPicker(boolean withseconds) {
hours = new Spinner();
hours.setCols(2);
setMinFor(hours, 0);
minutes = new Spinner();
minutes.setCols(2);
setRangeFor(minutes, 0, 59);
appendWithTooltipText(hours, _("Hours"));
appendWithTooltipText(minutes, _("Minutes"));
if (withseconds) {
seconds = new Spinner();
seconds.setCols(2);
setRangeFor(seconds, 0, 59);
appendWithTooltipText(seconds, _("Seconds"));
}
}