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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
<HTML>
<BODY BGCOLOR="white">
<PRE>
<FONT color="green">001</FONT> /*<a name="line.1"></a>
<FONT color="green">002</FONT> * Copyright (C) 2008 Adam Cornett This program is free software; you can<a name="line.2"></a>
<FONT color="green">003</FONT> * redistribute it and/or modify it under the terms of the GNU General Public<a name="line.3"></a>
<FONT color="green">004</FONT> * License as published by the Free Software Foundation; either version 3 of the<a name="line.4"></a>
<FONT color="green">005</FONT> * License, or (at your option) any later version. This program is distributed<a name="line.5"></a>
<FONT color="green">006</FONT> * in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even<a name="line.6"></a>
<FONT color="green">007</FONT> * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<a name="line.7"></a>
<FONT color="green">008</FONT> * See the GNU General Public License for more details. You should have received<a name="line.8"></a>
<FONT color="green">009</FONT> * a copy of the GNU General Public License along with this program; if not, see<a name="line.9"></a>
<FONT color="green">010</FONT> * <http://www.gnu.org/licenses>.<a name="line.10"></a>
<FONT color="green">011</FONT> */<a name="line.11"></a>
<FONT color="green">012</FONT> <a name="line.12"></a>
<FONT color="green">013</FONT> package net.codescore.ui.admin.setup.fullui;<a name="line.13"></a>
<FONT color="green">014</FONT> <a name="line.14"></a>
<FONT color="green">015</FONT> import org.zkoss.zul.Timebox;<a name="line.15"></a>
<FONT color="green">016</FONT> <a name="line.16"></a>
<FONT color="green">017</FONT> import net.codescore.ui.admin.setup.FullSetup;<a name="line.17"></a>
<FONT color="green">018</FONT> <a name="line.18"></a>
<FONT color="green">019</FONT> public class start_time_box extends Timebox {<a name="line.19"></a>
<FONT color="green">020</FONT> private final FullSetup fullSetup;<a name="line.20"></a>
<FONT color="green">021</FONT> <a name="line.21"></a>
<FONT color="green">022</FONT> public start_time_box(FullSetup fullSetup) {<a name="line.22"></a>
<FONT color="green">023</FONT> this.fullSetup = fullSetup;<a name="line.23"></a>
<FONT color="green">024</FONT> this.setValue(this.fullSetup.compMan.getCompetition().getStart());<a name="line.24"></a>
<FONT color="green">025</FONT> }<a name="line.25"></a>
<FONT color="green">026</FONT> <a name="line.26"></a>
<FONT color="green">027</FONT> public void onChange() {<a name="line.27"></a>
<FONT color="green">028</FONT> this.fullSetup.updateStartTime(getValue());<a name="line.28"></a>
<FONT color="green">029</FONT> }<a name="line.29"></a>
<FONT color="green">030</FONT> }<a name="line.30"></a>
</PRE>
</BODY>
</HTML>
|