(final ClickEvent event)
| 149 | : "datePickerNextButton"); |
| 150 | button.addClickHandler(new ClickHandler() { |
| 151 | public void onClick(final ClickEvent event) { |
| 152 | Date d = box.getValue(); |
| 153 | if (d == null) { |
| 154 | if (seconds >= 0) { |
| 155 | return; |
| 156 | } |
| 157 | d = new Date(); |
| 158 | } |
| 159 | d.setTime(d.getTime() + seconds * 1000L); |
| 160 | d.setSeconds(0); |
| 161 | setDate(d); |
| 162 | } |
| 163 | }); |
| 164 | return button; |
| 165 | } |