28 |
ddelon |
1 |
/**
|
|
|
2 |
David Delon david.delon@clapas.net 2007
|
|
|
3 |
|
|
|
4 |
*/
|
|
|
5 |
|
|
|
6 |
/*
|
|
|
7 |
* InventoryFilterView.java : filtrage des releves (par communes, lieu-dit, dates ....)
|
|
|
8 |
*
|
|
|
9 |
*
|
|
|
10 |
* 1: Le programme initialise les filtres communes, lieu-dit et dates)
|
|
|
11 |
*/
|
|
|
12 |
|
|
|
13 |
|
|
|
14 |
package org.tela_botanica.client;
|
|
|
15 |
|
|
|
16 |
//TODO : regler taille
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
import net.mygwt.ui.client.Style;
|
|
|
20 |
import net.mygwt.ui.client.widget.ExpandBar;
|
|
|
21 |
import net.mygwt.ui.client.widget.ExpandItem;
|
|
|
22 |
import net.mygwt.ui.client.widget.WidgetContainer;
|
|
|
23 |
|
|
|
24 |
import org.tela_botanica.client.LocationFilterPanel;
|
|
|
25 |
|
|
|
26 |
/**
|
|
|
27 |
*/
|
|
|
28 |
|
|
|
29 |
public class InventoryFilterView {
|
|
|
30 |
|
|
|
31 |
private LocationFilterPanel locationFilterPanel = null;
|
|
|
32 |
private DateFilterPanel dateFilterPanel = null;
|
|
|
33 |
private StationFilterPanel stationFilterPanel = null;
|
|
|
34 |
private Mediator mediator=null;
|
|
|
35 |
|
|
|
36 |
public InventoryFilterView(Mediator med) {
|
|
|
37 |
|
|
|
38 |
mediator=med;
|
|
|
39 |
|
|
|
40 |
dateFilterPanel = new DateFilterPanel(mediator);
|
|
|
41 |
locationFilterPanel = new LocationFilterPanel(mediator);
|
|
|
42 |
stationFilterPanel = new StationFilterPanel(mediator);
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
ExpandBar expandBar = new ExpandBar(Style.SINGLE | Style.HEADER);
|
|
|
46 |
expandBar.setSize(300, 300);
|
|
|
47 |
|
|
|
48 |
ExpandItem locationfilter = new ExpandItem();
|
|
|
49 |
locationfilter.setText("Localités");
|
|
|
50 |
locationfilter.getContainer().add(locationFilterPanel);
|
|
|
51 |
expandBar.add(locationfilter);
|
|
|
52 |
|
|
|
53 |
locationfilter.setExpanded(true);
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
ExpandItem stationfilter = new ExpandItem();
|
|
|
57 |
stationfilter.setText("Stations");
|
|
|
58 |
stationfilter.getContainer().add(stationFilterPanel);
|
|
|
59 |
expandBar.add(stationfilter);
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
ExpandItem dateFilter = new ExpandItem();
|
|
|
63 |
dateFilter.setText("Dates");
|
|
|
64 |
dateFilter.getContainer().add(dateFilterPanel);
|
|
|
65 |
expandBar.add(dateFilter);
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
WidgetContainer west=mediator.getWestContainer();
|
|
|
69 |
|
|
|
70 |
west.add(expandBar);
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
}
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
}
|
|
|
78 |
|
|
|
79 |
/* +--Fin du code ---------------------------------------------------------------------------------------+
|
|
|
80 |
* $Log$
|
|
|
81 |
* Revision 1.7 2007-09-17 19:25:34 ddelon
|
|
|
82 |
* Documentation
|
|
|
83 |
*
|
|
|
84 |
*
|
|
|
85 |
*/
|