Subversion Repositories eFlore/Archives.cel-v1

Rev

Rev 28 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28 Rev 29
Line 19... Line 19...
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;
Line 23... Line -...
23
 
-
 
Line 24... Line 23...
24
import org.tela_botanica.client.LocationFilterPanel;
23
 
25
 
24
 
Line 26... Line 25...
26
/**
25
/**
Line 27... Line 26...
27
 */
26
 */
28
 
27
 
29
public class InventoryFilterView {
28
public class InventoryFilterView {
30
 
29
 
Line 31... Line 30...
31
 private LocationFilterPanel locationFilterPanel = null;
30
 private LocationFilterView locationFilterView = null;
Line 32... Line 31...
32
 private DateFilterPanel dateFilterPanel = null;
31
 private DateFilterView dateFilterView = null;
33
 private StationFilterPanel stationFilterPanel = null;
-
 
34
 private Mediator mediator=null;
-
 
35
 
-
 
36
  public InventoryFilterView(Mediator med) {
-
 
37
 
-
 
Line -... Line 32...
-
 
32
 private ExpandBar expandBar=null;
38
	mediator=med;
33
 private Mediator mediator=null;
39
		
34
 
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
	
-
 
Line 48... Line -...
48
	ExpandItem locationfilter = new ExpandItem();  
-
 
49
	locationfilter.setText("Localités");  
-
 
50
	locationfilter.getContainer().add(locationFilterPanel);
35
  public InventoryFilterView(Mediator med) {
51
	expandBar.add(locationfilter);  
-
 
52
	
-
 
53
	locationfilter.setExpanded(true);  
-
 
54
	
-
 
55
 
-
 
56
	ExpandItem stationfilter = new ExpandItem();  
36
 
57
	stationfilter.setText("Stations");  
-
 
58
	stationfilter.getContainer().add(stationFilterPanel);
37
	mediator=med;
Line 59... Line 38...
59
	expandBar.add(stationfilter);  
38
	
Line 60... Line 39...
60
	
39
		
Line 61... Line 40...
61
	
40
	expandBar = new ExpandBar(Style.SINGLE | Style.HEADER);  
Line -... Line 41...
-
 
41
	expandBar.setSize(300, 300);  
-
 
42
 
-
 
43
	locationFilterView = new LocationFilterView(mediator,this);
-
 
44
	dateFilterView = new DateFilterView(mediator,this);
Line 62... Line 45...
62
	ExpandItem dateFilter = new ExpandItem();  
45
 
Line 63... Line 46...
63
	dateFilter.setText("Dates");  
46
 
64
	dateFilter.getContainer().add(dateFilterPanel);
47
	WidgetContainer west=mediator.getWestContainer();
-
 
48
	
-
 
49
	west.add(expandBar);
-
 
50
 
65
	expandBar.add(dateFilter);  
51
    
66
	
52
  }
67
 
53
 
68
	WidgetContainer west=mediator.getWestContainer();
54
public ExpandBar getExpandBar() {
69
	
55
	return expandBar;