Subversion Repositories eFlore/Applications.coel

Rev

Rev 1383 | Rev 1437 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1383 Rev 1436
Line 52... Line 52...
52
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
52
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
53
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
53
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
54
import com.extjs.gxt.ui.client.widget.grid.AggregationRowConfig;
54
import com.extjs.gxt.ui.client.widget.grid.AggregationRowConfig;
55
import com.extjs.gxt.ui.client.widget.grid.CellEditor;
55
import com.extjs.gxt.ui.client.widget.grid.CellEditor;
56
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
56
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
-
 
57
import com.extjs.gxt.ui.client.widget.grid.ColumnData;
57
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
58
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
58
import com.extjs.gxt.ui.client.widget.grid.EditorGrid;
59
import com.extjs.gxt.ui.client.widget.grid.EditorGrid;
-
 
60
import com.extjs.gxt.ui.client.widget.grid.Grid;
-
 
61
import com.extjs.gxt.ui.client.widget.grid.GridCellRenderer;
59
import com.extjs.gxt.ui.client.widget.grid.GridSelectionModel;
62
import com.extjs.gxt.ui.client.widget.grid.GridSelectionModel;
60
import com.extjs.gxt.ui.client.widget.grid.HeaderGroupConfig;
63
import com.extjs.gxt.ui.client.widget.grid.HeaderGroupConfig;
61
import com.extjs.gxt.ui.client.widget.grid.SummaryType;
64
import com.extjs.gxt.ui.client.widget.grid.SummaryType;
62
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
65
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
63
import com.extjs.gxt.ui.client.widget.layout.FormData;
66
import com.extjs.gxt.ui.client.widget.layout.FormData;
Line 196... Line 199...
196
		ContentPanel panneau = new ContentPanel();
199
		ContentPanel panneau = new ContentPanel();
197
		panneau.setHeading(titre);
200
		panneau.setHeading(titre);
198
		panneau.setIcon(Images.ICONES.table());
201
		panneau.setIcon(Images.ICONES.table());
199
		panneau.setLayout(new FitLayout());
202
		panneau.setLayout(new FitLayout());
200
		panneau.setFrame(true);
203
		panneau.setFrame(true);
-
 
204
		panneau.setSize(800, 200);
201
		panneau.setScrollMode(Scroll.AUTO);
205
		panneau.setScrollMode(Scroll.NONE);
202
		panneau.setCollapsible(true);
206
		panneau.setCollapsible(true);
203
		panneau.setStyleAttribute("margin", "5px 0");
207
		panneau.setStyleAttribute("margin", "5px 0");
Line 204... Line 208...
204
		
208
		
205
		return panneau;
209
		return panneau;
Line 261... Line 265...
261
		AggregationRowConfig<UniteBase> total = new AggregationRowConfig<UniteBase>();
265
		AggregationRowConfig<UniteBase> total = new AggregationRowConfig<UniteBase>();
262
		total.setHtml("type", i18nC.total());
266
		total.setHtml("type", i18nC.total());
263
		total.setSummaryType("nombre", SummaryType.SUM);
267
		total.setSummaryType("nombre", SummaryType.SUM);
264
		total.setSummaryFormat("nombre", NumberFormat.getFormat("#"));
268
		total.setSummaryFormat("nombre", NumberFormat.getFormat("#"));
265
		modeleDeColonnes.addAggregationRow(total);
269
		modeleDeColonnes.addAggregationRow(total);
-
 
270
		/*
-
 
271
		precisionColonne.setRenderer(new GridCellRenderer<UniteRangement>() {
-
 
272
			
-
 
273
	        public String render(Collection model, String property, ColumnData config, int rowIndex, int colIndex, ListStore<Collection> store) {
-
 
274
	          config.style = "background-color: silver;";
-
 
275
	          return model.get(property);
-
 
276
	        }
-
 
277
 
-
 
278
			@Override
-
 
279
			public Object render(UniteRangement model, String property,
-
 
280
					ColumnData config, int rowIndex, int colIndex,
-
 
281
					ListStore<UniteRangement> store, Grid<UniteRangement> grid) {
-
 
282
				config.style = "border: 1px solid gray;";
-
 
283
				return model.get(property);
-
 
284
			}
-
 
285
	      });*/
Line 266... Line 286...
266
		
286
		
267
		EditorGrid<UniteRangement> grilleUniteRangement = new EditorGrid<UniteRangement>(storeGrille, modeleDeColonnes);
287
		EditorGrid<UniteRangement> grilleUniteRangement = new EditorGrid<UniteRangement>(storeGrille, modeleDeColonnes);
268
		grilleUniteRangement.setHeight(300);
288
		grilleUniteRangement.setHeight(300);
269
		grilleUniteRangement.setBorders(true);
289
		grilleUniteRangement.setBorders(true);