Ignore:
Timestamp:
03/04/10 22:23:21 (2 years ago)
Author:
sys
Message:

review ptritem xed, impl shortDescDrawer, début svc et window itemSelector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Xul_Wsp/modules/scenariWsp/commons/src.jsm

    r15019 r15032  
    3939  
    4040/** 
    41  * Propriétés et fonctions relatives à l'API Src (uri, paths, id...).  
     41 * Propriétés et fonctions relatives à l'API Src (uri, paths, id...).  
    4242 */ 
    4343const EXPORTED_SYMBOLS = ["src"]; 
     
    6161 
    6262/** 
    63  * Ajoute un élément fils à une uri et retourne la nouvelle Uri. 
     63 * Ajoute un élément fils à une uri et retourne la nouvelle Uri. 
    6464 */ 
    6565src.addLeafToUri = function(pUriParent, pLeafName){ 
     
    8080 
    8181/** 
    82  * Retourne l'élément terminal d'une Uri. 
     82 * Retourne l'élément terminal d'une Uri. 
    8383 */ 
    8484src.getLeafFromUri = function(pUri){ 
     
    9292 
    9393/** 
    94  * pAncestorUri est-elle un ancêtre de pUri. 
     94 * pAncestorUri est-elle un ancêtre de pUri. 
    9595 * Si pAncestorUri==pUri retourne false. 
    9696 */ 
     
    9898        var vParentLen = pAncestorUri.length; 
    9999        if(pUri.length > vParentLen && pUri.substring(0, vParentLen) == pAncestorUri) { 
    100                 var vChar = pUri.charAt(vParentLen); 
    101                 return vChar=="/"; 
     100                return pUri.charAt(vParentLen) == "/"; 
    102101        } 
    103102        return false; 
     
    110109 
    111110/** 
    112  *  
     111 * Une refUri est-elle de nature Id ? 
    113112 */ 
    114 src.isSrcId = function(pSrcPath){ 
    115         return pSrcPath ? /^id\:/.test(pSrcPath) : false; 
     113src.isSrcId = function(pRefUri){ 
     114        return pRefUri ? /^id\:/.test(pRefUri) : false; 
    116115} 
    117116 
    118117/** 
    119  * Enrichit les fields définissant le contenu du shortDesc. 
     118 * Construit une refUri à partir d'un id. 
     119 */ 
     120src.buildRefUriFromId = function (pSrcId) { 
     121        return src.ID_PREFIX + pSrcId; 
     122} 
     123 
     124/** 
     125 * Enrichit les fields d�finissant le contenu du shortDesc. 
    120126 *  
    121  * @param pExtPoints extPoints à modifier 
     127 * @param pExtPoints extPoints modifier 
    122128 * @param pFields Tableau Js de fields 
    123129 */ 
Note: See TracChangeset for help on using the changeset viewer.