-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathIntegrationView.java
More file actions
53 lines (42 loc) · 999 Bytes
/
IntegrationView.java
File metadata and controls
53 lines (42 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package com.flowingcode.addons.simpletimer.integration;
import com.flowingcode.vaadin.addons.simpletimer.SimpleTimer;
import com.vaadin.flow.component.ClientCallable;
import com.vaadin.flow.component.html.Div;
import com.vaadin.flow.router.Route;
@Route("/it")
public class IntegrationView extends Div implements IntegrationCallables {
private SimpleTimer timer = new SimpleTimer();
public IntegrationView() {
add(timer);
}
@Override
@ClientCallable
public void setStartTime(Integer startTime) {
timer.setStartTime(startTime);
}
@Override
@ClientCallable
public void setEndTime(Integer endTime) {
timer.setEndTime(endTime);
}
@Override
@ClientCallable
public void start() {
timer.start();
}
@Override
@ClientCallable
public void pause() {
timer.pause();
}
@Override
@ClientCallable
public void reset() {
timer.reset();
}
@Override
@ClientCallable
public boolean isRunning() {
return timer.isRunning();
}
}