Changeset 427


Ignore:
Timestamp:
03/21/12 14:02:38 (12 years ago)
Author:
vmipsl
Message:

!!! Recup Megapoli apres EFFACEMENT !!!

Location:
ether_megapoli/trunk/domain/interface/com/medias/database/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ether_megapoli/trunk/domain/interface/com/medias/database/objects/CategorieParam.java

    r89 r427  
    7373                this.parametres = parametres; 
    7474        } 
    75  
     75         
     76        public String getCat1() { 
     77                return categorieParamNom.split(" > ")[0]; 
     78        } 
     79         
     80        public String getCat2() { 
     81                String[] listCat = categorieParamNom.split(" > "); 
     82                if (listCat.length > 1) 
     83                        return listCat[1]; 
     84                else 
     85                        return ""; 
     86        } 
     87         
     88        public String getCat3() { 
     89                String[] listCat = categorieParamNom.split(" > "); 
     90                if (listCat.length > 2) 
     91                        return listCat[2]; 
     92                else 
     93                        return ""; 
     94        } 
     95         
     96        public String getCat4() { 
     97                String[] listCat = categorieParamNom.split(" > "); 
     98                if (listCat.length > 3) 
     99                        return listCat[3]; 
     100                else 
     101                        return ""; 
     102        } 
    76103} 
  • ether_megapoli/trunk/domain/interface/com/medias/database/objects/Parametre.java

    r89 r427  
    171171        } 
    172172    } 
     173     
     174    public class ComparatorNomId implements Comparator<Parametre>{ 
     175        public int compare(Parametre p1, Parametre p2){ 
     176                int compareNom = p1.getParametreNom().compareTo(p2.getParametreNom()); 
     177                if (compareNom == 0) 
     178                        return new Integer(p1.getParametreId()).compareTo(new Integer(p2.getParametreId())); 
     179                else 
     180                        return compareNom; 
     181        } 
     182    } 
    173183} 
Note: See TracChangeset for help on using the changeset viewer.