70. EPMO Open Source Coordination Office Redaction File Detail Report

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.

70.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\CacheWeb\src\gov\va\med\cache\gui\client CacheStackPanel.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 CacheStackPanel.java Mon Dec 4 21:57:57 2017 UTC

70.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 226
Changed 1 2
Inserted 0 0
Removed 0 0

70.3 Comparison options

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

70.4 Active regular expressions

No regular expressions were active.

70.5 Comparison detail

  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.Cache ManagerVO;
  7   import gov .va.med.ca che.gui.sh ared.Cache VO;
  8  
  9   import org .apache.lo gging.log4 j.LogManag er;
  10   import org .apache.lo gging.log4 j.Logger;
  11  
  12   import com .google.gw t.aria.cli ent.Roles;
  13   import com .google.gw t.core.cli ent.GWT;
  14   import com .google.gw t.dom.clie nt.Style.U nit;
  15   import com .google.gw t.event.do m.client.C lickEvent;
  16   import com .google.gw t.event.do m.client.C lickHandle r;
  17   import com .google.gw t.user.cli ent.Elemen t;
  18   import com .google.gw t.user.cli ent.ui.HTM L;
  19   import com .google.gw t.user.cli ent.ui.Hor izontalPan el;
  20   import com .google.gw t.user.cli ent.ui.Lab el;
  21   import com .google.gw t.user.cli ent.ui.Wid get;
  22   import com .google.gw t.view.cli ent.AsyncD ataProvide r;
  23  
  24   /**
  25    * @author         
BECKEC
  26    *
  27    */
  28   public cla ss CacheSt ackPanel 
  29   extends St ackLayoutD ataPanel<C acheVO, Ca chePanel>
  30   {
  31           Lo gger                                     lo gger = Log Manager.ge tLogger("C acheStackP anel");
  32           Ca cheDataPro vider                 cacheDataP rovider;
  33           st atic Clien tMessages  clientMess ages = GWT .create(Cl ientMessag es.class);  
  34           
  35           pu blic Cache StackPanel (CacheData Provider c acheDataPr ovider)
  36           {
  37                    supe r(Unit.PX,  30);
  38  
  39                    if(c acheDataPr ovider ==  null)
  40                             throw  new Illega lArgumentE xception(" The provid ed CacheDa taProvider  must not  be null.") ;
  41                    this .cacheData Provider =  cacheData Provider;
  42                    this .addStyleN ame("cache _panel");
  43                    setS ize("800px ", "400px" );
  44           }
  45           
  46           pr ivate Cach eDataProvi der getCac heDataProv ider()
  47           {
  48                    retu rn cacheDa taProvider ;
  49           }
  50  
  51           @O verride
  52           pu blic Cache Panel crea teStackPan elWidget(C acheVO cac he)
  53           {
  54                    retu rn new Cac hePanel(th is.cacheDa taProvider , cache);
  55           }
  56  
  57           @O verride
  58           pu blic Widge t createSt ackPanelHe aderWidget (CacheVO c ache)
  59           {
  60                    retu rn new Cac hePanelHea derWidget( cache);
  61           }
  62  
  63           pr ivate clas s CachePan elHeaderWi dget
  64           ex tends Hori zontalPane l
  65           {
  66                    priv ate final  CacheVO ca che;
  67                    
  68                    publ ic CachePa nelHeaderW idget(Cach eVO cache)  
  69                    {
  70                             this.c ache = cac he;
  71                             this.s etWidth("1 00%");
  72                             this.a ddStyleNam e("cache-p anel-heade r");
  73                             HTML h tmlCacheDi splay = ne w HTML(cac he.getName ());
  74                             htmlCa cheDisplay .addStyleN ame("cache -panel-tit le");
  75                             add(ht mlCacheDis play);
  76                             
  77                             if(Con figuration .isShowCle arCache())
  78                             {
  79                                      Label cl earButton  = new Labe l("Clear C ache");
  80                                      clearBut ton.setSty leName("hy perlink_st yle_label" );
  81                                      
  82                                      clearBut ton.addCli ckHandler( new ClickH andler() {
  83                                               @Override
  84                                               public voi d onClick( ClickEvent  event) {c learClick( );}
  85                                      });
  86                                      
  87                                      Roles.ge tButtonRol e().set(cl earButton. getElement ());
  88                                      add(clea rButton);
  89                             }
  90                    }
  91                    priv ate void c learClick( ){clearCac he(cache); }
  92                    
  93           }
  94  
  95           pr otected vo id initial ize()
  96           {
  97                    Cach eManagerVO  cacheMana ger = getC acheDataPr ovider().g etCacheMan ager();
  98                    Asyn cDataProvi der<CacheV O> dataPro vider = ge tCacheData Provider() .getOrCrea teDecorato r(cacheMan ager);
  99                    logg er.info( " CacheStack Panel, Cac heDataProv ider decor ator is "  + dataProv ider.toStr ing() );
  100                    
  101                    data Provider.a ddDataDisp lay( this  );
  102                    this .setRowCou nt(Integer .MAX_VALUE );
  103                    this .setVisibl eRange(0,  Integer.MA X_VALUE);
  104                    //Me ssageDialo g.showInfo rmationDia log("Cache StackPanel ", "Cache  Manager Se t");
  105           }
  106           
  107           pr ivate void  clearCach e(CacheVO  cache)
  108           {
  109                    Stri ng cacheNa me = cache .getName() ;
  110                    
  111                    if(  com.google .gwt.user. client.Win dow.confir m(clientMe ssages.hal Says(cache Name)) )
  112                             cacheD ataProvide r.clearCac he(cacheNa me);
  113           }
  114   }