Subversion Repositories eFlore/Archives.cel-v1

Rev

Rev 28 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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