Produced by Araxis Merge on 12/5/2017 12:06:36 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\CacheWeb\src\gov\va\med\cache\gui\client | CachePanel.java | Mon Dec 4 21:34:22 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\CacheWeb\src\gov\va\med\cache\gui\client | CachePanel.java | Mon Dec 4 21:57:57 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 228 |
| 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 | */ | |
| 4 | package go v.va.med.c ache.gui.c lient; | |
| 5 | ||
| 6 | import gov .va.med.ca che.gui.sh ared.Abstr actNamedVO ; | |
| 7 | import gov .va.med.ca che.gui.sh ared.Cache ItemPath; | |
| 8 | import gov .va.med.ca che.gui.sh ared.Cache VO; | |
| 9 | ||
| 10 | import org .apache.lo gging.log4 j.LogManag er; | |
| 11 | import org .apache.lo gging.log4 j.Logger; | |
| 12 | ||
| 13 | import com .google.gw t.user.cel lview.clie nt.CellTre e; | |
| 14 | import com .google.gw t.user.cel lview.clie nt.HasKeyb oardSelect ionPolicy. KeyboardSe lectionPol icy; | |
| 15 | import com .google.gw t.user.cel lview.clie nt.TreeNod e; | |
| 16 | import com .google.gw t.user.cli ent.ui.Lay outPanel; | |
| 17 | import com .google.gw t.user.cli ent.ui.Scr ollPanel; | |
| 18 | import com .google.gw t.view.cli ent.MultiS electionMo del; | |
| 19 | import com .google.gw t.view.cli ent.Select ionChangeE vent; | |
| 20 | import com .google.gw t.view.cli ent.Single SelectionM odel; | |
| 21 | ||
| 22 | /** | |
| 23 | * @author
|
|
| 24 | * | |
| 25 | */ | |
| 26 | public cla ss CachePa nel extend s LayoutPa nel | |
| 27 | { | |
| 28 | pr ivate Cach eDataProvi der da taProvider ; | |
| 29 | pr ivate Cach eContentTr eeModel treeModel; | |
| 30 | pr ivate Scro llPanel tree Scroll; | |
| 31 | pr ivate Cell Tree cont entTree; | |
| 32 | pr ivate Cach eVO root Cache; | |
| 33 | ||
| 34 | Lo gger logger = LogMan ager.getLo gger(Cache Panel.clas s); | |
| 35 | ||
| 36 | /* * | |
| 37 | * @param ca che | |
| 38 | * @param ca che | |
| 39 | * @param ca cheManager | |
| 40 | * @param ht ml | |
| 41 | * / | |
| 42 | pu blic Cache Panel(Cach eDataProvi der dataPr ovider, Ca cheVO root Cache) | |
| 43 | { | |
| 44 | this .dataProvi der = data Provider; | |
| 45 | this .rootCache = rootCac he; | |
| 46 | ||
| 47 | init ialize(); | |
| 48 | } | |
| 49 | ||
| 50 | pr otected Ca cheVO getR ootCache() | |
| 51 | { | |
| 52 | retu rn rootCac he; | |
| 53 | } | |
| 54 | ||
| 55 | /* * | |
| 56 | * | |
| 57 | * / | |
| 58 | pu blic void initialize () | |
| 59 | { | |
| 60 | fina l SingleSe lectionMod el<Abstrac tNamedVO> selectionM odel = new SingleSel ectionMode l<Abstract NamedVO>() ; | |
| 61 | sele ctionModel .addSelect ionChangeH andler(new Selection ChangeEven t.Handler( ) | |
| 62 | { | |
| 63 | @Overr ide | |
| 64 | public void onSe lectionCha nge(Select ionChangeE vent event ) | |
| 65 | { | |
| 66 | MessageD ialog.show Informatio nDialog("S election C hange", "G roup selec tion statu s has chan ged"); | |
| 67 | } | |
| 68 | }); | |
| 69 | /*fi nal MultiS electionMo del<Abstra ctNamedVO> selection Model = ne w MultiSel ectionMode l<Abstract NamedVO>() ; | |
| 70 | sele ctionModel .addSelect ionChangeH andler(new Selection ChangeEven t.Handler( ) | |
| 71 | { | |
| 72 | @Overr ide | |
| 73 | public void onSe lectionCha nge(Select ionChangeE vent event ) | |
| 74 | { | |
| 75 | MessageD ialog.show Informatio nDialog("S election C hange", "G roup selec tion statu s has chan ged"); | |
| 76 | } | |
| 77 | });* / | |
| 78 | ||
| 79 | // A syncDataPr ovider<Reg ionVO> cac heRegionDa taProvider = | |
| 80 | // d ataProvide r.createDe corator(ge tRootCache ()); | |
| 81 | this .treeModel = new Cac heContentT reeModel(d ataProvide r, selecti onModel); | |
| 82 | ||
| 83 | /* | |
| 84 | * C reate the tree using the model . Set the cache as t he value o f the | |
| 85 | * r oot node. The defaul t value wi ll be pass ed to | |
| 86 | * C acheConten tTreeModel #getNodeIn fo(); | |
| 87 | */ | |
| 88 | cont entTree = new CellTr ee(this.tr eeModel, g etRootCach e()); | |
| 89 | cont entTree.se tSize("400 px", "400p x"); | |
| 90 | ||
| 91 | cont entTree.se tKeyboardS electionPo licy(Keybo ardSelecti onPolicy.E NABLED); | |
| 92 | ||
| 93 | // O pen the fi rst region by defaul t. | |
| 94 | logg er.info("G etting roo t tree nod e."); | |
| 95 | Tree Node rootN ode = cont entTree.ge tRootTreeN ode(); | |
| 96 | logg er.info("R oot node i s '" + roo tNode.toSt ring() + " '."); | |
| 97 | int rootChildC ount = roo tNode.getC hildCount( ); | |
| 98 | if ( rootChildC ount > 0) rootNode.s etChildOpe n(0, true) ; | |
| 99 | ||
| 100 | // O pen or clo se a child node and fire an ev ent. | |
| 101 | // I f open is true and t he TreeNod e successf ully opens , returns the | |
| 102 | // c hild TreeN ode. | |
| 103 | // D elegates t o setChild Open(int, boolean, b oolean). | |
| 104 | // T reeNode fi rstRegion = rootNode .setChildO pen(0, tru e); | |
| 105 | // l ogger.log( Level.INF O, firstRe gion.toStr ing() ); | |
| 106 | ||
| 107 | // i f(firstReg ion != nul l) | |
| 108 | // f irstRegion .setChildO pen(0, tru e); | |
| 109 | ||
| 110 | logg er.info("A dding tree to panel. "); | |
| 111 | tree Scroll = n ew ScrollP anel(conte ntTree); | |
| 112 | ||
| 113 | this .add(treeS croll); | |
| 114 | } | |
| 115 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.