File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed
java/com/flowingcode/vaadin/addons/simpletimer
resources/META-INF/frontend/simple-timer Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change 41
41
public class SimpleTimer extends Component implements HasSize , HasStyle , Serializable {
42
42
43
43
private static final long serialVersionUID = 1L ;
44
- private static final int START_TIME_S = 60 ;
45
44
private static final String DISPLAY = "display" ;
46
45
private static final String INLINE = "inline" ;
47
46
private static final String CURRENT_TIME = "currentTime" ;
48
47
49
- /** Creates a timer with a start time of 60 */
48
+ /** Creates a timer */
50
49
public SimpleTimer () {
51
- this (START_TIME_S );
52
- }
53
-
54
- /**
55
- * Creates a timer using the start time passed in the constructor
56
- *
57
- * @param startTime value in seconds for the start time
58
- */
59
- public SimpleTimer (final Number startTime ) {
60
50
getElement ().getStyle ().set (DISPLAY , INLINE );
61
- setStartTime (startTime );
62
51
}
63
52
64
53
/**
Original file line number Diff line number Diff line change @@ -41,11 +41,10 @@ Polymer({
41
41
properties : {
42
42
/**
43
43
* Start time for the timer in seconds
44
- * @default 60
45
44
*/
46
45
startTime : {
47
46
type : Number ,
48
- value : 60
47
+ value : 0
49
48
} ,
50
49
/**
51
50
* End time for the timer in seconds
You can’t perform that action at this time.
0 commit comments