MCPcopy Create free account
hub / github.com/OpenTSDB/opentsdb / onClick

Method onClick

src/tsd/client/DateTimeBox.java:151–162  ·  view source on GitHub ↗
(final ClickEvent event)

Source from the content-addressed store, hash-verified

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 }

Callers

nothing calls this directly

Calls 7

setDateMethod · 0.95
setupAmUIMethod · 0.95
setupPmUIMethod · 0.95
getValueMethod · 0.45
setTimeMethod · 0.45
getTimeMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected