New file |
0,0 → 1,85 |
/** |
David Delon david.delon@clapas.net 2007 |
|
*/ |
|
/* |
* InventoryFilterView.java : filtrage des releves (par communes, lieu-dit, dates ....) |
* |
* |
* 1: Le programme initialise les filtres communes, lieu-dit et dates) |
*/ |
|
|
package org.tela_botanica.client; |
|
//TODO : regler taille |
|
|
import net.mygwt.ui.client.Style; |
import net.mygwt.ui.client.widget.ExpandBar; |
import net.mygwt.ui.client.widget.ExpandItem; |
import net.mygwt.ui.client.widget.WidgetContainer; |
|
import org.tela_botanica.client.LocationFilterPanel; |
|
/** |
*/ |
|
public class InventoryFilterView { |
|
private LocationFilterPanel locationFilterPanel = null; |
private DateFilterPanel dateFilterPanel = null; |
private StationFilterPanel stationFilterPanel = null; |
private Mediator mediator=null; |
|
public InventoryFilterView(Mediator med) { |
|
mediator=med; |
|
dateFilterPanel = new DateFilterPanel(mediator); |
locationFilterPanel = new LocationFilterPanel(mediator); |
stationFilterPanel = new StationFilterPanel(mediator); |
|
|
ExpandBar expandBar = new ExpandBar(Style.SINGLE | Style.HEADER); |
expandBar.setSize(300, 300); |
|
ExpandItem locationfilter = new ExpandItem(); |
locationfilter.setText("Localités"); |
locationfilter.getContainer().add(locationFilterPanel); |
expandBar.add(locationfilter); |
|
locationfilter.setExpanded(true); |
|
|
ExpandItem stationfilter = new ExpandItem(); |
stationfilter.setText("Stations"); |
stationfilter.getContainer().add(stationFilterPanel); |
expandBar.add(stationfilter); |
|
|
ExpandItem dateFilter = new ExpandItem(); |
dateFilter.setText("Dates"); |
dateFilter.getContainer().add(dateFilterPanel); |
expandBar.add(dateFilter); |
|
|
WidgetContainer west=mediator.getWestContainer(); |
|
west.add(expandBar); |
|
|
} |
|
|
|
} |
|
/* +--Fin du code ---------------------------------------------------------------------------------------+ |
* $Log$ |
* Revision 1.7 2007-09-17 19:25:34 ddelon |
* Documentation |
* |
* |
*/ |