Produced by Araxis Merge on 12/5/2017 12:06:44 PM Central Standard 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 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\ImagingDicomDCFCommon\src\java\gov\va\med\imaging\dicom\dcftoolkit\common\license\gui | LicenseDialogView.java | Mon Dec 4 21:35:32 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\ImagingDicomDCFCommon\src\java\gov\va\med\imaging\dicom\dcftoolkit\common\license\gui | LicenseDialogView.java | Mon Dec 4 22:02:23 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 424 |
| Changed | 1 | 2 |
| 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: octo ber 5, 200 5 | |
| 6 | Site Nam e: Washin gton OI Fi eld Office , Silver S pring, MD | |
| 7 | Developer:
|
|
| 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 | package go v.va.med.i maging.dic om.dcftool kit.common .license.g ui; | |
| 26 | ||
| 27 | ||
| 28 | import jav a.awt.Cont ainer; | |
| 29 | import jav a.awt.Dime nsion; | |
| 30 | import jav a.awt.Font ; | |
| 31 | import jav a.awt.Grap hicsConfig uration; | |
| 32 | import jav a.awt.Grid BagConstra ints; | |
| 33 | import jav a.awt.Grid BagLayout; | |
| 34 | import jav a.awt.Head lessExcept ion; | |
| 35 | import jav a.awt.Inse ts; | |
| 36 | import jav a.awt.Labe l; | |
| 37 | import jav a.awt.even t.ActionEv ent; | |
| 38 | import jav a.awt.even t.ActionLi stener; | |
| 39 | import jav a.io.File; | |
| 40 | ||
| 41 | import jav ax.swing.J Button; | |
| 42 | import jav ax.swing.J Frame; | |
| 43 | import jav ax.swing.J Label; | |
| 44 | import jav ax.swing.J TextField; | |
| 45 | import jav ax.swing.U IManager; | |
| 46 | ||
| 47 | import org .apache.lo gging.log4 j.LogManag er; | |
| 48 | import org .apache.lo gging.log4 j.Logger; | |
| 49 | ||
| 50 | /** | |
| 51 | * | |
| 52 | * TODO To change th e template for this generated type comme nt go to | |
| 53 | * Window - Preferen ces - Java - Code St yle - Code Templates | |
| 54 | * | |
| 55 | * | |
| 56 | * @author William P eterson | |
| 57 | * | |
| 58 | */ | |
| 59 | public cla ss License DialogView extends J Frame impl ements Act ionListene r { | |
| 60 | ||
| 61 | ||
| 62 | privat e static f inal Logge r logger = LogManage r.getLogge r (License DialogView .class); | |
| 63 | ||
| 64 | protec ted JTextF ield licen seKeyField ; | |
| 65 | protec ted JButto n browseBu tton; | |
| 66 | protec ted JButto n loadButt on; | |
| 67 | protec ted JButto n cancelBu tton; | |
| 68 | ||
| 69 | privat e LicenseD ialog dial og; | |
| 70 | ||
| 71 | privat e File fil e; | |
| 72 | ||
| 73 | /** | |
| 74 | * Con structor | |
| 75 | * | |
| 76 | * @th rows java. awt.Headle ssExceptio n | |
| 77 | */ | |
| 78 | public LicenseDi alogView() throws He adlessExce ption { | |
| 79 | su per(); | |
| 80 | // | |
| 81 | } | |
| 82 | ||
| 83 | /** | |
| 84 | * Con structor | |
| 85 | * | |
| 86 | * @pa ram gc | |
| 87 | */ | |
| 88 | public LicenseDi alogView(G raphicsCon figuration gc) { | |
| 89 | su per(gc); | |
| 90 | // | |
| 91 | } | |
| 92 | ||
| 93 | /** | |
| 94 | * Con structor | |
| 95 | * | |
| 96 | * @pa ram title | |
| 97 | * @th rows java. awt.Headle ssExceptio n | |
| 98 | */ | |
| 99 | public LicenseDi alogView(S tring titl e) throws HeadlessEx ception { | |
| 100 | su per(title) ; | |
| 101 | // | |
| 102 | } | |
| 103 | ||
| 104 | /** | |
| 105 | * Con structor | |
| 106 | * | |
| 107 | * @pa ram title | |
| 108 | * @pa ram gc | |
| 109 | */ | |
| 110 | public LicenseDi alogView(S tring titl e, Graphic sConfigura tion gc) { | |
| 111 | su per(title, gc); | |
| 112 | // | |
| 113 | } | |
| 114 | ||
| 115 | public LicenseDi alogView(L icenseDial og dlg) { | |
| 116 | su per("Laure l Bridge D ICOM Toolk it License Installer "); | |
| 117 | se tSize(480, 180); | |
| 118 | di alog = dlg ; | |
| 119 | th is.setWind ows(); | |
| 120 | ad dControls( ); | |
| 121 | br owseButton .addAction Listener( this ); | |
| 122 | lo adButton.a ddActionLi stener(thi s); | |
| 123 | ca ncelButton .addAction Listener( this ); | |
| 124 | } | |
| 125 | ||
| 126 | ||
| 127 | ||
| 128 | /* (no n-Javadoc) | |
| 129 | * @se e java.awt .event.Act ionListene r#actionPe rformed(ja va.awt.eve nt.ActionE vent) | |
| 130 | */ | |
| 131 | public void acti onPerforme d(ActionEv ent e) { | |
| 132 | // | |
| 133 | St ring cmd = e.getActi onCommand( ); | |
| 134 | ||
| 135 | if (cmd.equal s("Browse" )){ | |
| 136 | //Call L icenseDial og to open FileChoos er. | |
| 137 | this.fil e = dialog .browseFor File(this) ; | |
| 138 | //Place the select ed filenam e into the textbox | |
| 139 | if(!(thi s.file == null)){ | |
| 140 | this .licenseKe yField.set Text(this. file.getNa me()); | |
| 141 | } | |
| 142 | } | |
| 143 | ||
| 144 | if (cmd.equa ls("Load") ){ | |
| 145 | //Get fi lename Str ing from t extbox. | |
| 146 | dialog.l oadFile(th is.file); | |
| 147 | setVisib le(false); | |
| 148 | } | |
| 149 | ||
| 150 | if (cmd.equa ls("Cancel ")){ | |
| 151 | this.dis pose(); | |
| 152 | } | |
| 153 | } | |
| 154 | privat e void add Controls() { | |
| 155 | Co ntainer co ntentPane = this.get ContentPan e(); | |
| 156 | co ntentPane. setLayout( new GridBa gLayout()) ; | |
| 157 | Gr idBagConst raints c = new GridB agConstrai nts(); | |
| 158 | // contentPan e.setLayou t(new Flow Layout()); | |
| 159 | ||
| 160 | // FUTURE Add status li ne and hav e it show various st ages of lo gging on. | |
| 161 | ||
| 162 | c. fill = Gri dBagConstr aints.NONE ; | |
| 163 | // c.anchor = GridBagCo nstraints. NORTH; | |
| 164 | JL abel label 3 = new JL abel("Lice nse File:" , Label.RI GHT); | |
| 165 | la bel3.setFo nt(this.se tFont()); | |
| 166 | c. gridx = 0; | |
| 167 | c. gridy = 0; | |
| 168 | co ntentPane. add(label3 , c); | |
| 169 | li censeKeyFi eld = new JTextField ("", 32); | |
| 170 | li censeKeyFi eld.setMin imumSize(n ew Dimensi on(280, 24 )); | |
| 171 | li censeKeyFi eld.setFon t(new Font ("SansSeri f", Font.P LAIN, 12)) ; | |
| 172 | ||
| 173 | c. gridx = 1; | |
| 174 | // c.gridx = 1; | |
| 175 | co ntentPane. add(licens eKeyField, c); | |
| 176 | ||
| 177 | c. anchor = G ridBagCons traints.SO UTH; | |
| 178 | c. insets = n ew Insets( 40, 2, 5, 2); | |
| 179 | c. ipadx = 12 ; | |
| 180 | c. ipady = 6; | |
| 181 | lo adButton = new JButt on("Load") ; | |
| 182 | lo adButton.s etFont(thi s.setFont( )); | |
| 183 | c. gridx = 0; | |
| 184 | c. gridy = 3; | |
| 185 | co ntentPane. add(loadBu tton, c); | |
| 186 | ||
| 187 | br owseButton = new JBu tton("Brow se"); | |
| 188 | br owseButton .setFont(t his.setFon t()); | |
| 189 | c. gridx = 1; | |
| 190 | co ntentPane. add(browse Button, c) ; | |
| 191 | ||
| 192 | ca ncelButton = new JBu tton("Canc el"); | |
| 193 | ca ncelButton .setFont(t his.setFon t()); | |
| 194 | c. gridx = 2; | |
| 195 | co ntentPane. add(cancel Button, c) ; | |
| 196 | ||
| 197 | } | |
| 198 | ||
| 199 | privat e void set Windows(){ | |
| 200 | tr y{ | |
| 201 | //UIMana ger.getSys temLookAnd FeelClassN ame(); | |
| 202 | UIManage r.setLookA ndFeel( | |
| 203 | "com.sun.j ava.swing. plaf.windo ws.Windows LookAndFee l"); | |
| 204 | } | |
| 205 | ca tch(Except ion e){ | |
| 206 | // | |
| 207 | } | |
| 208 | } | |
| 209 | ||
| 210 | privat e Font set Font(){ | |
| 211 | re turn new F ont("SansS erif", Fon t.BOLD, 12 ); | |
| 212 | } | |
| 213 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.