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 | CacheDescriptionCell.java | Mon Dec 4 21:34:20 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\CacheWeb\src\gov\va\med\cache\gui\client | CacheDescriptionCell.java | Mon Dec 4 21:57:56 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 166 |
| 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 VO; | |
| 8 | ||
| 9 | import com .google.gw t.cell.cli ent.Cell; | |
| 10 | import com .google.gw t.cell.cli ent.FieldU pdater; | |
| 11 | import com .google.gw t.cell.cli ent.HasCel l; | |
| 12 | import com .google.gw t.safehtml .shared.Sa feHtmlBuil der; | |
| 13 | ||
| 14 | /** | |
| 15 | * @author
|
|
| 16 | * | |
| 17 | */ | |
| 18 | public cla ss CacheDe scriptionC ell | |
| 19 | extends Ab stractName dItemDescr iptionCell <CacheVO> | |
| 20 | { | |
| 21 | pu blic final static St ring METAD ATA_ELEMEN T = Config uration.cl ientMessag es.cacheDe scriptionE lement(); | |
| 22 | pu blic final static St ring METAD ATA_LIST_C ONTAINER_E LEMENT = C onfigurati on.clientM essages.ca cheDescrip tionItemCo llectionEl ement(); | |
| 23 | pu blic final static St ring METAD ATA_LIST_E LEMENT = C onfigurati on.clientM essages.ca cheDescrip tionItemEl ement(); | |
| 24 | ||
| 25 | pr ivate HasC ell<CacheV O, CacheVO > hasCell = null; | |
| 26 | ||
| 27 | pu blic Cache Descriptio nCell(Cach eContentTr eeModel mo del, Strin g... consu medEvents) | |
| 28 | { | |
| 29 | supe r(model, c onsumedEve nts); | |
| 30 | this .hasCell = new HasCa cheManager Descriptio nCell(); | |
| 31 | } | |
| 32 | ||
| 33 | @O verride | |
| 34 | pu blic void render(Con text conte xt, Abstra ctNamedVO value, Saf eHtmlBuild er sb) | |
| 35 | { | |
| 36 | Cach eVO cacheV O = (Cache VO)value; | |
| 37 | ||
| 38 | if(c acheVO.get Metadata() != null) | |
| 39 | { | |
| 40 | sb.app endHtmlCon stant("<" + METADATA _ELEMENT + " class=\ "descripti on\">"); | |
| 41 | sb.app endHtmlCon stant( "<" + METADAT A_LIST_CON TAINER_ELE MENT + ">" ); | |
| 42 | ||
| 43 | sb.app endHtmlCon stant( "<" + METADAT A_LIST_ELE MENT + ">" ); | |
| 44 | sb.app endEscaped ( "URI :" + cacheVO. getMetadat a().getCac heUri() ); | |
| 45 | sb.app endHtmlCon stant( "</ " + METADA TA_LIST_EL EMENT + "> " ); | |
| 46 | ||
| 47 | sb.app endHtmlCon stant( "<" + METADAT A_LIST_ELE MENT + ">" ); | |
| 48 | sb.app endEscaped ( "protoco l :" + cac heVO.getMe tadata().g etProtocol () ); | |
| 49 | sb.app endHtmlCon stant( "</ " + METADA TA_LIST_EL EMENT + "> " ); | |
| 50 | ||
| 51 | sb.app endHtmlCon stant( "<" + METADAT A_LIST_ELE MENT + ">" ); | |
| 52 | sb.app endEscaped ( "locatio n :" + cac heVO.getMe tadata().g etLocation () ); | |
| 53 | sb.app endHtmlCon stant( "</ " + METADA TA_LIST_EL EMENT + "> " ); | |
| 54 | ||
| 55 | sb.app endHtmlCon stant("</" + METADAT A_LIST_CON TAINER_ELE MENT + ">" ); | |
| 56 | sb.app endHtmlCon stant("</" + METADAT A_ELEMENT + ">"); | |
| 57 | } | |
| 58 | } | |
| 59 | ||
| 60 | @O verride | |
| 61 | pu blic HasCe ll<CacheVO , CacheVO> getHasCel l() {retur n hasCell; } | |
| 62 | ||
| 63 | /* * | |
| 64 | * HasCell<T ,C> is an interface for extrac ting a val ue of type C from an underlyin g data val ue of type T, | |
| 65 | * provide a Cell to r ender that value, an d provide a FieldUpd ater to pe rform noti fication o f updates to the cel l. | |
| 66 | * | |
| 67 | * Parameter s: | |
| 68 | * <T> the u nderlying data type | |
| 69 | * <C> the c ell data t ype | |
| 70 | * / | |
| 71 | cl ass HasCac heManagerD escription Cell | |
| 72 | im plements H asCell<Cac heVO, Cach eVO> | |
| 73 | { | |
| 74 | @Ove rride | |
| 75 | publ ic Cell<Ca cheVO> get Cell() {re turn Cache Descriptio nCell.this ;} | |
| 76 | ||
| 77 | @Ove rride | |
| 78 | publ ic FieldUp dater<Cach eVO, Cache VO> getFie ldUpdater( ) {return null;} | |
| 79 | ||
| 80 | @Ove rride | |
| 81 | publ ic CacheVO getValue( CacheVO ob ject){retu rn (CacheV O)object;} | |
| 82 | } | |
| 83 | ||
| 84 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.