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 4141public class SimpleTimer extends Component implements HasSize , HasStyle , Serializable {
4242
4343 private static final long serialVersionUID = 1L ;
44- private static final int START_TIME_S = 60 ;
4544 private static final String DISPLAY = "display" ;
4645 private static final String INLINE = "inline" ;
4746 private static final String CURRENT_TIME = "currentTime" ;
4847
49- /** Creates a timer with a start time of 60 */
48+ /** Creates a timer */
5049 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 ) {
6050 getElement ().getStyle ().set (DISPLAY , INLINE );
61- setStartTime (startTime );
6251 }
6352
6453 /**
Original file line number Diff line number Diff line change @@ -41,11 +41,10 @@ Polymer({
4141 properties : {
4242 /**
4343 * Start time for the timer in seconds
44- * @default 60
4544 */
4645 startTime : {
4746 type : Number ,
48- value : 60
47+ value : 0
4948 } ,
5049 /**
5150 * End time for the timer in seconds
You can’t perform that action at this time.
0 commit comments