Produced by Araxis Merge on 6/5/2018 10:24:06 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | patch_205_build_9.zip\Java\AwivClientWebApp\main\src\java\gov\va\med\imaging\awiv\business | AwivTimer.java | Wed May 30 14:35:23 2018 UTC |
2 | patch_205_build_9.zip\Java\AwivClientWebApp\main\src\java\gov\va\med\imaging\awiv\business | AwivTimer.java | Wed May 30 19:26:52 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 3 | 234 |
Changed | 2 | 4 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | /** | |
2 | * | |
3 | Package: MAG - Vis tA Imaging | |
4 | WARNING: Per VHA D irective 2 004-038, t his routin e should n ot be modi fied. | |
5 | Date Cre ated: Feb 10, 2012 | |
6 | Site Nam e: Washin gton OI Fi eld Office , Silver S pring, MD | |
7 | Developer: PI I
|
|
8 | Descript ion: | |
9 | ||
10 | ;; +-------- ---------- ---------- ---------- ---------- ---------- ---------- + | |
11 | ;; Property of the US Government . | |
12 | ;; No permis sion to co py or redi stribute t his softwa re is give n. | |
13 | ;; Use of un released v ersions of this soft ware requi res the us er | |
14 | ;; to execu te a writt en test ag reement wi th the Vis tA Imaging | |
15 | ;; Developm ent Office of the De partment o f Veterans Affairs, | |
16 | ;; telephon e (301) 73 4-0100. | |
17 | ;; | |
18 | ;; The Food and Drug A dministrat ion classi fies this software a s | |
19 | ;; a Class I I medical device. A s such, it may not b e changed | |
20 | ;; in any wa y. Modifi cations to this soft ware may r esult in a n | |
21 | ;; adulterat ed medical device un der 21CFR8 20, the us e of which | |
22 | ;; is consid ered to be a violati on of US F ederal Sta tutes. | |
23 | ;; +-------- ---------- ---------- ---------- ---------- ---------- ---------- + | |
24 | ||
25 | */ | |
26 | package go v.va.med.i maging.awi v.business ; | |
27 | ||
28 | import jav a.util.log ging.Logge r; | |
29 | ||
30 | import gov .va.med.im aging.awiv .client.ev ents.AwivT imerRunEve nt; | |
31 | ||
32 | import com .google.gw t.user.cli ent.Timer; | |
33 | /** | |
34 | * This is an extens ion of the GWT Timer . For som e reason t he GWT tim er doesn't seem to a lways resp ect the | |
35 | * cancel method - t he run eve nt still f ires even after canc el has bee n called. This exte nsion sets a variabl e | |
36 | * when th e cancel m ethod is c alled and checks to see if can celed was called bef ore callin g the run method. | |
37 | * | |
38 | * @author PI I
|
|
39 | * | |
40 | */ | |
41 | public cla ss AwivTim er | |
42 | extends Ti mer | |
43 | { | |
44 | pr ivate fina l AwivTime rRunEvent timerRunEv ent; | |
45 | pr ivate bool ean cancel led; | |
46 | pr ivate stat ic Logger logger = L ogger.getL ogger(""); | |
47 | pr ivate fina l int time rId; | |
48 | ||
49 | pr ivate stat ic int max TimerId = 0; | |
50 | ||
51 | pu blic AwivT imer(AwivT imerRunEve nt timerRu nEvent) | |
52 | { | |
53 | maxT imerId++; | |
54 | time rId = maxT imerId; | |
55 | this .timerRunE vent = tim erRunEvent ; | |
56 | canc elled = fa lse; | |
57 | logg er.info("C reated tim er '" + ti merId + "' ."); | |
58 | } | |
59 | ||
60 | /* (non-Java doc) | |
61 | * @see com. google.gwt .user.clie nt.Timer#r un() | |
62 | * / | |
63 | @O verride | |
64 | pu blic void run() | |
65 | { | |
66 | logg er.info("R un called in timer ' " + timerI d + "'."); | |
67 | if(! cancelled) | |
68 | { | |
69 | //Wind ow.alert(" About to d o run"); | |
70 | if(tim erRunEvent != null) | |
71 | { | |
72 | logger.i nfo("Timer '" + time rId + "' n ot cancell ed and has timerRunE vent, call ing event" ); | |
73 | timerRun Event.OnTi merRun(); | |
74 | } | |
75 | } | |
76 | else | |
77 | { | |
78 | logger .info("Run cancelled on timer '" + timer Id + "'.") ; | |
79 | } | |
80 | } | |
81 | ||
82 | /* (non-Java doc) | |
83 | * @see com. google.gwt .user.clie nt.Timer#c ancel() | |
84 | * / | |
85 | @O verride | |
86 | pu blic void cancel() | |
87 | { | |
88 | //lo gger.info( "Cancel ca lled on ti mer '" + t imerId + " '."); | |
89 | supe r.cancel() ; | |
90 | canc elled = tr ue; | |
91 | logg er.info("C ancelling timer '" + timerId + "'."); | |
92 | } | |
93 | ||
94 | /* (non-Java doc) | |
95 | * @see com. google.gwt .user.clie nt.Timer#s chedule(in t) | |
96 | * / | |
97 | @O verride | |
98 | pu blic void schedule(i nt delayMi llis) | |
99 | { | |
100 | supe r.schedule (delayMill is); | |
101 | canc elled = fa lse; | |
102 | logg er.info("S cheduling timer '" + timerId + "' for '" + delayMi llis + "' ms."); | |
103 | //lo gger.info( "schedule( " + delayM illis + ") called on timer '" + timerId + "', rese tting canc elled to f alse"); | |
104 | } | |
105 | ||
106 | /* (non-Java doc) | |
107 | * @see com. google.gwt .user.clie nt.Timer#s cheduleRep eating(int ) | |
108 | * / | |
109 | @O verride | |
110 | pu blic void scheduleRe peating(in t periodMi llis) | |
111 | { | |
112 | supe r.schedule Repeating( periodMill is); | |
113 | canc elled = fa lse; | |
114 | logg er.info("S chedule re peating ti mer '" + t imerId + " ' for '" + periodMil lis + "' m s."); | |
115 | //lo gger.info( "scheduleR epeating(" + periodM illis + ") called on timer '" + timerId + "', rese tting canc elled to f alse"); | |
116 | } | |
117 | ||
118 | ||
119 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.