- Timestamp:
- 03/06/10 12:21:07 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Xul_Wsp/content/scenariWsp/views/historyView/historyView.xbl.xml
r15043 r15061 4 4 xmlns:xbl="http://www.mozilla.org/xbl"> 5 5 6 <binding id="historyView" 7 extends="chrome://scenariCore/content/widgets/matrix/matrix.xbl.xml#view-base"> 6 <binding id="historyView" extends="chrome://scenariCore/content/widgets/matrix/matrix.xbl.xml#view-base"> 8 7 <resources> 8 <stylesheet src="chrome://scenariCommons/content/widgets/tree/tree.css"/> 9 9 <stylesheet src="chrome://scenariWsp/content/views/historyView/history.css"/> 10 10 </resources> 11 <content orient="vertical" flex="1"> 12 <xul:tree type="jsTree" columnsLists="columns:historyView" flex="1" seltype="single" 13 flags="dont-build-content"/> 11 <content label="Historique" orient="vertical" flex="1"> 12 <xul:tree type="jsTree" columnsLists="columns:historyView" flex="1" seltype="single" flags="dont-build-content"/> 14 13 </content> 15 14 <implementation> 16 <field name="fTreeNode">document.getAnonymousElementByAttribute(this, "type", 17 "jsTree")</field> 15 <field name="fTreeNode">document.getAnonymousElementByAttribute(this, "type", "jsTree")</field> 18 16 19 17 <constructor><![CDATA[ … … 70 68 Components.utils.import("resource://scenariCommons/widgets/jsTree/columns.jsm", this); 71 69 72 var columnDate = new this.columns.Column("date").setLabel("Date").setFlex(1) ;70 var columnDate = new this.columns.Column("date").setLabel("Date").setFlex(1).setWidth(100); 73 71 columnDate.setCellBuilderFactory(function(pJsTreeRoot){ 74 72 return new pJsTreeRoot.CellBuilderLeafDate("srcDt", true, "%3$s/%2$s/%1$s %4$s:%5$s:%6$s"); 75 73 }); 76 extPoints.addToList("columns:historyView", "columnDate", 1, columnDate, 60);74 extPoints.addToList("columns:historyView", "columnDate", 1, columnDate, 10); 77 75 78 var columnUser = new this.columns.Column("contrib").setLabel("Contributeur").setFlex(1); 79 columnUser.setCellBuilderFactory(function(pJsTreeRoot){ 80 return new pJsTreeRoot.CellBuilderLeafString("srcUser", true); 81 }); 82 extPoints.registerSvcByInst("columnUser", 1, columnUser); 83 extPoints.addToList("columns:historyView", "columnUser", 1, columnUser, 60); 76 var columnUser = extPoints.getSvc("columnContrib"); 77 if(!columnUser) { 78 columnUser = new this.columns.Column("contrib").setLabel("Contributeur").setFlex(1).setWidth(120); 79 columnUser.setCellBuilderFactory(function(pJsTreeRoot){ 80 return new pJsTreeRoot.CellBuilderLeafString("srcUser", true); 81 }); 82 } 83 extPoints.addToList("columns:historyView", "columnUser", 1, columnUser, 20); 84 84 }catch(e){log.debug(e);} 85 85 ]]></body>
Note: See TracChangeset
for help on using the changeset viewer.