Subversion Repositories eFlore/Archives.cel-v1

Rev

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

Rev 12 Rev 13
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.HorizontalPanel;
-
 
20
import com.google.gwt.user.client.ui.VerticalPanel;
19
import com.google.gwt.user.client.ui.StackPanel;
21
 
20
 
22
import org.tela_botanica.client.LocationList;
21
import org.tela_botanica.client.LocationList;
23
 
22
 
24
/**
23
/**
25
 */
24
 */
26
 
25
 
27
public class LeftPanel extends Composite {
26
public class LeftPanel extends Composite {
28
 
27
 
29
 private LocationList locationList = null;
28
 private LocationList locationList = null;
30
 private DateList dateList = null;
29
 private DateList dateList = null;
31
 
30
 
32
  public LeftPanel(Mediator mediator) {
31
  public LeftPanel(Mediator mediator) {
33
 
-
 
34
	HorizontalPanel inner = new HorizontalPanel();
32
 
35
	dateList = new DateList(mediator);
33
	dateList = new DateList(mediator);
36
	locationList = new LocationList(mediator);
34
	locationList = new LocationList(mediator);
37
	
35
	
38
	dateList.setStyleName("dateList");
36
	dateList.setStyleName("dateList");
39
	locationList.setStyleName("locationList");
37
	locationList.setStyleName("locationList");
40
	
38
	
41
	VerticalPanel outer = new VerticalPanel();
-
 
42
 
-
 
43
	
39
	StackPanel outer = new StackPanel();
44
    outer.add(inner);
40
	
45
    outer.add(locationList);
-
 
-
 
41
    outer.add(locationList,"Communes");
-
 
42
    outer.add(dateList,"Dates");
-
 
43
 
-
 
44
    // Create the groups within the stack panel.
-
 
45
    outer.add(locationList, "<b>Localit&eacute;s</b>", true);
-
 
46
    outer.add(dateList, "<b>Dates</b>", true);
-
 
47
 
46
    outer.add(dateList);
48
    
47
    outer.setCellHeight(inner,"100%");
49
    outer.showStack(0);
48
 
50
    
49
    initWidget(outer);
51
    initWidget(outer);
50
  }
52
  }
-
 
53
 
-
 
54
 
51
 
55
  
52
}
56
}