| 10 |
ddelon |
1 |
/*
|
|
|
2 |
* Copyright 2006 Google Inc.
|
|
|
3 |
*
|
|
|
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 |
*
|
|
|
8 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
9 |
*
|
|
|
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
|
|
|
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 |
*/
|
|
|
16 |
package org.tela_botanica.client;
|
|
|
17 |
|
|
|
18 |
import com.google.gwt.user.client.ui.Composite;
|
| 13 |
ddelon |
19 |
import com.google.gwt.user.client.ui.StackPanel;
|
| 10 |
ddelon |
20 |
|
|
|
21 |
import org.tela_botanica.client.LocationList;
|
|
|
22 |
|
|
|
23 |
/**
|
|
|
24 |
*/
|
|
|
25 |
|
|
|
26 |
public class LeftPanel extends Composite {
|
|
|
27 |
|
|
|
28 |
private LocationList locationList = null;
|
| 12 |
ddelon |
29 |
private DateList dateList = null;
|
| 14 |
ddelon |
30 |
private StationList stationList = null;
|
| 10 |
ddelon |
31 |
|
|
|
32 |
public LeftPanel(Mediator mediator) {
|
|
|
33 |
|
| 12 |
ddelon |
34 |
dateList = new DateList(mediator);
|
| 10 |
ddelon |
35 |
locationList = new LocationList(mediator);
|
| 14 |
ddelon |
36 |
stationList = new StationList(mediator);
|
| 12 |
ddelon |
37 |
|
|
|
38 |
dateList.setStyleName("dateList");
|
|
|
39 |
locationList.setStyleName("locationList");
|
| 14 |
ddelon |
40 |
locationList.setStyleName("stationList");
|
| 12 |
ddelon |
41 |
|
| 13 |
ddelon |
42 |
StackPanel outer = new StackPanel();
|
| 10 |
ddelon |
43 |
|
|
|
44 |
|
| 13 |
ddelon |
45 |
// Create the groups within the stack panel.
|
|
|
46 |
outer.add(locationList, "<b>Localités</b>", true);
|
| 14 |
ddelon |
47 |
outer.add(stationList,"<b>Stations</b>",true);
|
| 13 |
ddelon |
48 |
outer.add(dateList, "<b>Dates</b>", true);
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
outer.showStack(0);
|
|
|
52 |
|
| 10 |
ddelon |
53 |
initWidget(outer);
|
|
|
54 |
}
|
|
|
55 |
|
| 13 |
ddelon |
56 |
|
|
|
57 |
|
| 10 |
ddelon |
58 |
}
|