/trunk/src/org/tela_botanica/client/vues/PanneauFiltresObservationVues.java |
---|
2,11 → 2,8 |
import org.tela_botanica.client.observation.ObservationMediateur; |
import com.gwtext.client.core.EventObject; |
import com.gwtext.client.widgets.Button; |
import com.gwtext.client.widgets.Panel; |
import com.gwtext.client.widgets.event.ButtonListenerAdapter; |
import com.gwtext.client.widgets.layout.VerticalLayout; |
import com.gwtext.client.widgets.layout.AccordionLayout; |
/** |
* Panneau contenant les filtres qu'on peut appliquer aux images |
28,10 → 25,6 |
private ArbreEntiteGeographiqueObservationFiltreVue arbreEntiteGeographiqueObservationFiltreVue = null; |
/** |
* Bouton de validation |
*/ |
private Button valider = null; |
/** |
* Construcuteur sans argument (privé car on ne doit pas l'utiliser) |
49,30 → 42,19 |
*/ |
public PanneauFiltresObservationVues(ObservationMediateur obs) { |
super("Rechercher des Observations"); |
super("Selections"); |
observationMediateur = obs; |
this.setCollapsible(true); |
setLayout(new VerticalLayout()); |
setLayout(new AccordionLayout(true)); |
arbreEntiteGeographiqueObservationFiltreVue = new ArbreEntiteGeographiqueObservationFiltreVue(observationMediateur); |
add(arbreEntiteGeographiqueObservationFiltreVue); |
Panel panelValidation = new Panel(); |
valider = new Button("Rechercher"); |
panelValidation.add(valider); |
panelValidation.setBorder(false); |
add(panelValidation); |
valider.addListener(new ButtonListenerAdapter() { |
public void onClick(Button button, EventObject e) { |
// iMediateur.obtenirPhotoGalerie(iMediateur.getGalerieImage()); |
} |
}); |
Panel dummy = new Panel("Date"); |
add(dummy); |
} |
/** |
/trunk/src/org/tela_botanica/client/vues/ArbreEntiteGeographiqueObservationFiltreVue.java |
---|
81,12 → 81,10 |
public ArbreEntiteGeographiqueObservationFiltreVue(ObservationMediateur obs) { |
// on crée le panel |
super(); |
super("Localité"); |
this.observationMediateur = obs; |
// on crée le conteneur de l'arbre |
Label labelRecherche = new Label("Localités :"); |
arbreEntitesGeographiques = new TreePanel(); |
this.setPaddings(5); |
95,7 → 93,6 |
this.setCollapsible(true); |
this.setAutoWidth(true); |
add(labelRecherche); |
// on ajoute les listeners |
ajouterListenersPanel(); |
116,13 → 113,13 |
// on interdit le drag and drop dans l'arbre |
arbreEntitesGeographiques.setEnableDD(false); |
arbreEntitesGeographiques.setId("x-view-tree-filter"); |
arbreEntitesGeographiques.setAutoWidth(false); |
arbreEntitesGeographiques.setAutoScroll(true); |
arbreEntitesGeographiques.setBorder(false); |
// arbreEntitesGeographiques.setAutoWidth(false); |
// arbreEntitesGeographiques.setAutoScroll(true); |
// arbreEntitesGeographiques.setBorder(false); |
// on crée une racine pour l'arbre |
TreeNode root = new TreeNode("Tags"); |
root.setId("racine_filtre"); |
TreeNode root = new TreeNode("Localité"); |
root.setId("racine_entite"); |
String[] usObject = { "Localités", "racine" }; |
root.setUserObject(usObject); |
130,8 → 127,6 |
arbreEntitesGeographiques.setRootVisible(true); |
arbreEntitesGeographiques.setBorder(false); |
// on met en forme le layout |
//((Panel) component).add(arbreEntitesGeographiques); |
add(arbreEntitesGeographiques); |
// on ajoute les listeners d'évenements |
150,7 → 145,7 |
/** |
* ajoute les listeners pour les boutons et le cochage des mots clés |
* ajoute les listeners pour les boutons et le cochage des entites |
*/ |
private void ajouterListeners() { |
241,7 → 236,8 |
// l'état du filtre est réinitialisé |
filtreModifie = false; |
show() ; |
//show() ; |
doLayout(); |
} |
/trunk/src/org/tela_botanica/client/vues/ListeObservationVue.java |
---|
10,6 → 10,7 |
import org.tela_botanica.client.interfaces.Rafraichissable; |
import org.tela_botanica.client.interfaces.VueListable; |
import com.google.gwt.user.client.Window; |
import com.gwtext.client.core.EventObject; |
import com.gwtext.client.core.Ext; |
import com.gwtext.client.core.ExtElement; |