Subversion Repositories eFlore/Archives.cel-v1

Rev

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

Rev 25 Rev 26
-
 
1
/**
-
 
2
 David Delon david.delon@clapas.net 2007
-
 
3
 
-
 
4
 */
-
 
5
 
1
/*
6
/*
2
 * Copyright 2006 Google Inc.
7
 * LeftPanel.java  : filtrage des releves (par communes, lieu-dit, dates ....)
3
 * 
8
 * 
4
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
-
 
5
 * use this file except in compliance with the License. You may obtain a copy of
-
 
6
 * the License at
-
 
7
 * 
9
 * 
8
 * http://www.apache.org/licenses/LICENSE-2.0
-
 
9
 * 
-
 
10
 * Unless required by applicable law or agreed to in writing, software
10
 * 1: Le programme initialise les filtres communes, lieu-dit et dates)
11
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-
 
12
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-
 
13
 * License for the specific language governing permissions and limitations under
-
 
14
 * the License.
-
 
15
 */
11
 */
-
 
12
 
-
 
13
 
16
package org.tela_botanica.client;
14
package org.tela_botanica.client;
-
 
15
 
17
 
16
 
18
import com.google.gwt.user.client.ui.Composite;
17
import com.google.gwt.user.client.ui.Composite;
19
import com.google.gwt.user.client.ui.StackPanel;
18
import com.google.gwt.user.client.ui.StackPanel;
20
 
19
 
21
import org.tela_botanica.client.LocationList;
20
import org.tela_botanica.client.LocationList;
22
 
21
 
23
/**
22
/**
24
 */
23
 */
25
 
24
 
26
public class LeftPanel extends Composite {
25
public class LeftPanel extends Composite {
27
 
26
 
28
 private LocationList locationList = null;
27
 private LocationList locationList = null;
29
 private DateList dateList = null;
28
 private DateList dateList = null;
30
 private StationList stationList = null;
29
 private StationList stationList = null;
31
 private Mediator mediator=null;
30
 private Mediator mediator=null;
32
 
31
 
33
  public LeftPanel(Mediator med) {
32
  public LeftPanel(Mediator med) {
34
 
33
 
35
	mediator=med;
34
	mediator=med;
36
	mediator.registerLeftPanel(this);		
35
	mediator.registerLeftPanel(this);		
37
		
36
		
38
	
37
	
39
	dateList = new DateList(mediator);
38
	dateList = new DateList(mediator);
40
	locationList = new LocationList(mediator);
39
	locationList = new LocationList(mediator);
41
	stationList = new StationList(mediator);
40
	stationList = new StationList(mediator);
42
	
41
	
43
	dateList.setStyleName("dateList");
42
	dateList.setStyleName("dateList");
44
	locationList.setStyleName("locationList");
43
	locationList.setStyleName("locationList");
45
	locationList.setStyleName("stationList");
44
	locationList.setStyleName("stationList");
46
	
45
	
47
	StackPanel outer = new StackPanel();
46
	StackPanel outer = new StackPanel();
48
	
-
 
49
 
47
	
50
    // Create the groups within the stack panel.
48
    // Create the groups within the stack panel.
51
    outer.add(locationList, "<b>Localit&eacute;s</b>", true);
49
    outer.add(locationList, "<b>Localit&eacute;s</b>", true);
52
    outer.add(stationList,"<b>Stations</b>",true);
50
    outer.add(stationList,"<b>Stations</b>",true);
53
    outer.add(dateList, "<b>Dates</b>", true);
51
    outer.add(dateList, "<b>Dates</b>", true);
54
 
52
 
55
    
53
    
56
    outer.showStack(0);
54
    outer.showStack(0);
57
    
55
    
58
    initWidget(outer);
56
    initWidget(outer);
59
  }
57
  }
60
 
58
 
61
 
59
 
62
  
60
  
63
}
61
}
-
 
62
 
-
 
63
/* +--Fin du code ---------------------------------------------------------------------------------------+
-
 
64
* $Log$
-
 
65
* 
-
 
66
*/