16,8 → 16,7 |
package org.tela_botanica.client; |
|
import com.google.gwt.user.client.ui.Composite; |
import com.google.gwt.user.client.ui.HorizontalPanel; |
import com.google.gwt.user.client.ui.VerticalPanel; |
import com.google.gwt.user.client.ui.StackPanel; |
|
import org.tela_botanica.client.LocationList; |
|
31,7 → 30,6 |
|
public LeftPanel(Mediator mediator) { |
|
HorizontalPanel inner = new HorizontalPanel(); |
dateList = new DateList(mediator); |
locationList = new LocationList(mediator); |
|
38,15 → 36,21 |
dateList.setStyleName("dateList"); |
locationList.setStyleName("locationList"); |
|
VerticalPanel outer = new VerticalPanel(); |
|
StackPanel outer = new StackPanel(); |
|
outer.add(inner); |
outer.add(locationList); |
outer.add(dateList); |
outer.setCellHeight(inner,"100%"); |
outer.add(locationList,"Communes"); |
outer.add(dateList,"Dates"); |
|
// Create the groups within the stack panel. |
outer.add(locationList, "<b>Localités</b>", true); |
outer.add(dateList, "<b>Dates</b>", true); |
|
|
outer.showStack(0); |
|
initWidget(outer); |
} |
|
|
|
} |