Subversion Repositories eFlore/Archives.cel-v1

Rev

Rev 14 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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