Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 139 → Rev 140

/trunk/src/org/tela_botanica/client/vues/MotsClesObsVue.java
File deleted
/trunk/src/org/tela_botanica/client/vues/SaisieMotsClesVue.java
File deleted
/trunk/src/org/tela_botanica/client/vues/MenuImageVue.java
65,7 → 65,7
iMediateur = im;
 
// on construit le menu
uploaderImage = new Item("Uploader des images");
uploaderImage = new Item("Ajouter des images");
supprimerImage = new Item("Supprimer les images selectionnées");
ajouterImageSelection = new Item(
"Ajouter les images sélectionnées au tampon");
/trunk/src/org/tela_botanica/client/vues/NuageMotsClesVue.java
4,6 → 4,7
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.observation.ObservationMediateur;
 
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.HTML;
11,7 → 12,12
import com.gwtext.client.core.EventObject;
import com.gwtext.client.core.Ext;
import com.gwtext.client.core.ExtElement;
import com.gwtext.client.widgets.BoxComponent;
import com.gwtext.client.widgets.Component;
import com.gwtext.client.widgets.Container;
import com.gwtext.client.widgets.Window;
import com.gwtext.client.widgets.event.ContainerListener;
import com.gwtext.client.widgets.event.ContainerListenerAdapter;
 
public class NuageMotsClesVue extends Window implements Filtrable, Rafraichissable {
 
23,6 → 29,8
private int nbMotsClesMax = 1 ;
private boolean nuageCharge = false ;
public NuageMotsClesVue(ObservationMediateur om) {
super("Nuage de mots clés");
setCls("fenmotcles");
29,7 → 37,30
oMediateur = om ;
setWidth(200);
this.setCloseAction(CLOSE);
oMediateur.obtenirNuageMotsCles(this);
//oMediateur.obtenirNuageMotsCles(this);
this.addListener(new ContainerListenerAdapter() {
 
@Override
public void onAfterLayout(Container self) {
if(!nuageCharge) {
masquerChargement();
}
}
 
@Override
public void onRender(Component component) {
}
 
@Override
public void onShow(Component component) {
// TODO Auto-generated method stub
}
});
}
 
88,7 → 119,7
HTML contenuHTML = new HTML(contenu) {
public void onBrowserEvent(Event e) {
oMediateur.ajouterMotCleRecherche(e.getTarget().getInnerHTML());
//oMediateur.ajouterMotCleRecherche(e.getTarget().getInnerHTML());
}
};
98,6 → 129,8
this.add(contenuHTML);
doLayout();
nuageCharge = true;
demasquerChargement();
}
private int calculerPoids(int poidMot) {
/trunk/src/org/tela_botanica/client/vues/EtatConnexionVue.java
19,12 → 19,22
 
 
import org.tela_botanica.client.CarnetEnLigneMediateur;
import org.tela_botanica.client.modeles.Configuration;
 
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Widget;
 
import com.gwtext.client.core.EventCallback;
import com.gwtext.client.core.EventObject;
import com.gwtext.client.core.Ext;
import com.gwtext.client.core.ExtElement;
import com.gwtext.client.widgets.Component;
import com.gwtext.client.widgets.Container;
import com.gwtext.client.widgets.Panel;
import com.gwtext.client.widgets.event.ContainerListener;
import com.gwtext.client.widgets.event.ContainerListenerAdapter;
 
 
 
50,8 → 60,10
*
*/
private HTML labelEtatConnexion = null;
private String labelEtatConnexion = null;
private String liens = "<div id=\"liensExt\"><a href=\"#\" id=\"lienAide\">Aide</a> <a href=\"#\" id=\"lienBugs\">Bugs </a></div>" ;
/**
* Booleen indiquant si utilisateur connecte
*
67,40 → 79,83
this.setBorder(false) ;
// Pas de word wrap
labelEtatConnexion=new HTML("",false);
labelEtatConnexion="";
this.add(labelEtatConnexion);
this.setHtml(labelEtatConnexion+liens);
 
ajouterListeners();
}
public void ajouterListeners() {
ExtElement lienAide = Ext.get("lienAide");
if(lienAide != null)
{
lienAide.removeAllListeners();
lienAide.addListener("click", new EventCallback() {
 
labelEtatConnexion.addClickListener(
new ClickListener() {
public void onClick(Widget sender) {
// Non connecte ? Lien vers dialogue de connection
if (!connecte) {
carnetEnLigneMediateur.afficherDialogueConnexion();
}
else {
carnetEnLigneMediateur.deconnecterUtilisateur();
 
}
public void execute(EventObject e) {
String aideUrl = Configuration.getAideBaseUrl() ;
Window.open(aideUrl, "", "") ;
}
});
}
else
{
addListener(new ContainerListenerAdapter() {
public void onAfterLayout(Container c) {
ExtElement lienAide = Ext.get("lienAide");
if(lienAide != null)
{
lienAide.removeAllListeners();
lienAide.addListener("click", new EventCallback() {
public void execute(EventObject e) {
String aideUrl = Configuration.getAideBaseUrl() ;
Window.open(aideUrl, "", "") ;
}
});
}
}
});
}
ExtElement lienBugs = Ext.get("lienBugs");
if(lienBugs != null)
{
lienBugs.removeAllListeners();
lienBugs.addListener("click", new EventCallback() {
}
}
);
public void execute(EventObject e) {
String bugsURL = Configuration.getSuiviBugUrl() ;
Window.open(bugsURL, "", "") ;
}
});
}
else
{
addListener(new ContainerListenerAdapter() {
public void onAfterLayout(Container c) {
ExtElement lienBugs = Ext.get("lienBugs");
if(lienBugs != null)
{
lienBugs.removeAllListeners();
lienBugs.addListener("click", new EventCallback() {
public void execute(EventObject e) {
String bugsURL = Configuration.getSuiviBugUrl() ;
Window.open(bugsURL, "", "") ;
}
});
}
}
});
}
}
 
112,20 → 167,153
* @param text
* @param connecte
*/
public void setEtat(String text, boolean connecte) {
public void setEtat(String identifiant, boolean connecte) {
if(connecte) {
labelEtatConnexion = "<div id=\"etatConnexion\">"+identifiant+" <a id=\"lienDeconnexion\" href=\"#\">(deconnexion)</a>" ;
labelEtatConnexion += "</div>" ;
labelEtatConnexion += liens ;
setHtml(labelEtatConnexion);
 
ExtElement lienDeco = Ext.get("etatConnexion");
if(lienDeco != null)
{
lienDeco.addListener("click", new EventCallback() {
 
public void execute(EventObject e) {
carnetEnLigneMediateur.deconnecterUtilisateur();
}
});
}
else
{
addListener(new ContainerListenerAdapter()
{
public void onAfterLayout(Container c)
{
ExtElement lienDeco = Ext.get("etatConnexion");
lienDeco.addListener("click", new EventCallback() {
 
public void execute(EventObject e) {
carnetEnLigneMediateur.deconnecterUtilisateur();
setEtat(null, false);
}
});
}
});
}
}
else
{
labelEtatConnexion = "<div id=\"etatConnexion\"> Utilisez ce carnet en ligne pour saisir vos observations, <a id=\"lienConnexion\" href=\"#\">identifiez-vous</a> pour les transmettre à Tela Botanica</div>";
labelEtatConnexion += liens ;
setHtml(labelEtatConnexion);
ExtElement lienCo = Ext.get("etatConnexion");
if(lienCo != null) {
lienCo.addListener("click", new EventCallback() {
 
public void execute(EventObject e) {
carnetEnLigneMediateur.afficherDialogueConnexion();
}
});
}
else
{
addListener(new ContainerListenerAdapter() {
public void onAfterLayout(Container c) {
ExtElement lienCo = Ext.get("etatConnexion");
lienCo.addListener("click", new EventCallback() {
 
public void execute(EventObject e) {
carnetEnLigneMediateur.afficherDialogueConnexion();
}
});
}
});
}
}
labelEtatConnexion.setHTML(text);
ExtElement lienBugs = Ext.get("lienBugs");
if(lienBugs != null)
{
lienBugs.removeAllListeners();
lienBugs.addListener("click", new EventCallback() {
 
public void execute(EventObject e) {
String bugsURL = Configuration.getSuiviBugUrl() ;
Window.open(bugsURL, "", "") ;
}
});
}
else
{
addListener(new ContainerListenerAdapter() {
public void onAfterLayout(Container c) {
ExtElement lienBugs = Ext.get("lienBugs");
if(lienBugs != null)
{
lienBugs.removeAllListeners();
lienBugs.addListener("click", new EventCallback() {
public void execute(EventObject e) {
String bugsURL = Configuration.getSuiviBugUrl() ;
Window.open(bugsURL, "", "") ;
}
});
}
}
});
}
this.connecte=connecte;
}
ExtElement lienAide = Ext.get("lienAide");
if(lienAide != null)
{
lienAide.removeAllListeners();
lienAide.addListener("click", new EventCallback() {
 
public void execute(EventObject e) {
String aideUrl = Configuration.getAideBaseUrl() ;
Window.open(aideUrl, "", "") ;
}
});
}
else
{
addListener(new ContainerListenerAdapter() {
public void onAfterLayout(Container c) {
ExtElement lienAide = Ext.get("lienAide");
if(lienAide != null)
{
lienAide.removeAllListeners();
lienAide.addListener("click", new EventCallback() {
public void execute(EventObject e) {
String aideUrl = Configuration.getAideBaseUrl() ;
Window.open(aideUrl, "", "") ;
}
});
}
}
});
}
 
this.connecte = connecte;
}
 
 
}
 
 
/trunk/src/org/tela_botanica/client/vues/ArbreEntiteGeographiqueObservationFiltreVue.java
178,8 → 178,6
case 0:
if(!arbreCharge)
{
/*observationMediateur.obtenirListeEntiteGeographique() ;
arbreCharge = true ;*/
arbreEntitesGeographiques.getRootNode().expand();
}
else
222,6 → 220,30
}) ;
}
public void initialiser() {
arbreCharge = false ;
arbreEntitesGeographiques.collapseAll();
// on vide l'ancien arbre
Node[] rootChild = arbreEntitesGeographiques.getRootNode().getChildNodes();
for (int i = 0; i < rootChild.length; i++) {
rootChild[i].remove();
}
arbreEntitesGeographiques.getRootNode().addListener(new TreeNodeListenerAdapter() {
public void onExpand(Node node) {
if(!arbreCharge)
{
observationMediateur.obtenirListeEntiteGeographique() ;
arbreCharge = true ;
}
}
}) ;
}
 
/**
* Méthode héritée de l'interface rafraichissable
253,6 → 275,8
id_location=ent.getIdLocation();
id_location = id_location.replaceAll("\"", "");
id_location = id_location.replace('\\',' ');
id_location = id_location.trim();
location=ent.getLocation();
lieuDit=ent.getLieuDit();
382,6 → 406,9
String id_location= obs.getIdentifiantLocalite();
id_location = id_location.replaceAll("\"", "");
id_location = id_location.replace('\\',' ');
id_location = id_location.trim();
String location=obs.getLocalite();
String lieuDit=obs.getLieudit();
606,6 → 633,7
public void raz() {
arbreCharge = false ;
arbreEntitesGeographiques.collapseAll();
arbreEntitesGeographiques.clear() ;
// on crée une racine pour l'arbre
/trunk/src/org/tela_botanica/client/vues/ListeObservationVue.java
145,7 → 145,6
bt.setLabelElement("Observations");
bt.setTaillePageParDefaut(20);
bt.setIntervallesPages(new String[] {"400","200", "100" , "50" , "20", "10"}) ;
this.setTopToolbar(bt) ;
Toolbar barreActions = new Toolbar();
ToolbarButton transmettre = new ToolbarButton("Transmettre");
170,9 → 169,9
barreActions.addSpacer();
barreActions.addItem(exporter);
this.setTopToolbar(barreActions) ;
this.setBottomToolbar(bt);
this.setBottomToolbar(barreActions);
this.setCollapsible(true);
this.setTitleCollapse(true);
/trunk/src/org/tela_botanica/client/vues/MiniZoomImageVue.java
199,7 → 199,7
 
// si on reçoit une string
if (nouvelleDonnees instanceof String[] && initialise
&& conteneurInitialise) {
&& conteneurInitialise && ((String[])nouvelleDonnees).length != 0) {
infosImages = (String[]) nouvelleDonnees;
index = 0 ;
afficherImage() ;
207,7 → 207,10
} else {
// sinon on met une image vide
infosImages = new String[0] ;
getImage().setUrl("");
getImage().setUrl("ill_liaison.png");
imageWidth = getImage().getWidth();
imageHeight = getImage().getHeight();
verifierEtRetaillerImage();
}
}
 
295,11 → 298,6
 
});
/*addListener(new PanelListenerAdapter() {
public void onResize(BoxComponent component, int adjWidth, int adjHeight, int rawWidth, int rawHeight) {
verifierEtRetaillerImage();
}
});*/
}
 
/**
/trunk/src/org/tela_botanica/client/vues/InformationRepartitionVue.java
79,8 → 79,8
image.sinkEvents(Event.ONDBLCLICK);
this.setCls("x-image-info-rep") ;
add(image);
image.setPixelSize(150, 150);
add(image);
// on ajoute les listeners
ajouterListeners();
100,8 → 100,9
urlImage=(String) nouvelleDonnees;
if (urlImage.length()==0) {
raz() ;
if (urlImage == null || urlImage.equals("null") || urlImage.length()==0) {
image.setUrl("ill_choro.png") ;
image.setPixelSize(150, 150);
}
else {
image.setUrl(urlImage);
/trunk/src/org/tela_botanica/client/vues/GalerieImageVue.java
5,7 → 5,9
import org.tela_botanica.client.interfaces.Rafraichissable;
import org.tela_botanica.client.interfaces.VueListable;
 
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.Element;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.HTML;
import com.gwtext.client.core.EventCallback;
import com.gwtext.client.core.EventObject;
62,6 → 64,10
* Booleen indiquant si la galerie est instanciée ou pas
*/
private boolean estInstancie = false;
private boolean garderRatio = false;
private int tailleOr = 100 ;
 
/**
* Constructeur sans argument, privé car ne doit pas être utilisé
97,14 → 103,16
public void onAfterLayout(Container c) {
ExtElement lienUpload = Ext.get("lienUpload");
lienUpload.addListener("click", new EventCallback() {
 
public void execute(EventObject e) {
if(lienUpload != null) {
lienUpload.addListener("click", new EventCallback() {
public void execute(EventObject e) {
getIMediateur().uploaderImages();
}
getIMediateur().uploaderImages();
}
}) ;
}) ;
}
}
 
});
247,7 → 255,7
new String[] {
"<tpl for='.'>",
"<div class='thumb-wrap' id='{num_image}'>",
"<div class='thumb'><img src='{url_image_M}' title='{num_image}'></div>",
"<div class='thumb'><img src='{url_image_M}' width='{taille_x_s} px' height='{taille_y_s} px' title='{num_image}'></div>",
"<span>{nom}</span></div>", "</tpl>",
"<div class='x-clear'></div>" });
// pour des raisons de performances on compile le template en une
260,7 → 268,22
 
public void prepareData(Data data) {
data.setProperty("shortName", Format.ellipsis(data
.getProperty("num_image"), 15));
.getProperty("num_image"), 15));
int[] XY = {data.getPropertyAsInt("taille_x") ,data.getPropertyAsInt("taille_y")} ;
int[] XYresize ;
if(garderRatio) {
XYresize = calculerDimensions(XY);
}
else {
XYresize = new int[2] ;
XYresize[0] = XYresize[1] = tailleOr ;
}
data.setProperty("taille_x_s", XYresize[0]);
data.setProperty("taille_y_s", XYresize[1]);
}
};
281,8 → 304,10
FieldDef defUrlImageS = new StringFieldDef("url_image_S");
FieldDef defUrlImageM = new StringFieldDef("url_image_M");
FieldDef defUrlImage = new StringFieldDef("url_image");
FieldDef defTailleX = new IntegerFieldDef("taille_x");
FieldDef defTailleY = new IntegerFieldDef("taille_y");
FieldDef[] defTab = { defNumImage, defDatImage, defLieImage,
defAppImage, defUrlImageS, defUrlImageM, defUrlImage };
defAppImage, defUrlImageS, defUrlImageM, defUrlImage,defTailleX,defTailleY};
RecordDef rd = new RecordDef(defTab);
st = new Store(rd);
dView.setStore(st);
349,6 → 374,13
// et on rafrachit la vue
dView.refresh();
}
else
{
st.removeAll();
st.load();
dView.setStore(st);
dView.refresh();
}
 
}
 
390,5 → 422,27
iMediateur.changerTaillePage(nouvelleTaillePage) ;
}
public int[] calculerDimensions(int[] tailleXY) {
float[] tailleXYf = {new Float(tailleXY[0]),new Float(tailleXY[1])} ;
float tailleOr = this.tailleOr ;
float maxTaille = Math.max(tailleXYf[1],tailleXYf[0]) ;
float[] XYresize = new float[2];
if(maxTaille == tailleXY[0]) {
float rapport = tailleXYf[1]/tailleXYf[0] ;
XYresize[0] = tailleOr ;
XYresize[1] = tailleOr*rapport ;
}else {
float rapport = tailleXYf[0]/tailleXYf[1] ;
XYresize[1] = tailleOr ;
XYresize[0] = tailleOr*rapport ;
}
int[] res = {Math.round(XYresize[0]),Math.round(XYresize[1])} ;
return res;
}
 
}
/trunk/src/org/tela_botanica/client/vues/ArbreDateObservationFiltreVue.java
224,6 → 224,30
}) ;
}
public void initialiser() {
arbreCharge = false ;
arbreDonneesDates.collapseAll();
// on vide l'ancien arbre
Node[] rootChild = arbreDonneesDates.getRootNode().getChildNodes();
for (int i = 0; i < rootChild.length; i++) {
rootChild[i].remove();
}
arbreDonneesDates.getRootNode().addListener(new TreeNodeListenerAdapter() {
public void onExpand(Node node) {
if(!arbreCharge)
{
observationMediateur.obtenirDatesObservation() ;
arbreCharge = true ;
}
}
}) ;
}
 
/**
* Méthode héritée de l'interface rafraichissable
233,12 → 257,14
if (nouvelleDonnees instanceof ListeDateObservation) {
GWT.log("AH ah ah ah ah je suis un canard",null);
String annee=null;
String mois=null;
String jour=null;
ListeDateObservation data = (ListeDateObservation) nouvelleDonnees ;
// on crée un arbre vide
TreeNode root = new TreeNode();
root.setId("racine_date");
600,7 → 626,9
public void raz() {
arbreCharge = false ;
arbreDonneesDates.clear() ;
arbreDonneesDates.collapseAll();
arbreDonneesDates.clear();
 
TreeNode root = new TreeNode("Dates");
root.setId("racine_date");
/trunk/src/org/tela_botanica/client/vues/FormulaireSaisieObservationVue.java
423,14 → 423,13
case KEY_ENTER:
if (selectionEspece) {
selectionEspece=false;
}
else {
validerSaisie(Champs.ESPECE);
}
if(selectionEspece) {
selectionEspece=false;
}
else {
validerSaisie(Champs.ESPECE);
}
break;
default:
479,7 → 478,7
}
});
comment.addKeyPressListener(new EventCallback() {
/*comment.addKeyPressListener(new EventCallback() {
 
public void execute(EventObject e) {
// TODO Auto-generated method stub
492,7 → 491,7
default:
}
}
});
});*/
 
 
677,6 → 676,13
String str = (String)nouvelleDonnees ;
observationMediateur.obtenirNombreObservation() ;
}
if(nouvelleDonnees instanceof String[]) {
String[] anumNom = (String[])nouvelleDonnees ;
numeroNom = anumNom[1];
espece.setValue(anumNom[0]);
setModification("false");
}
 
}
702,6 → 708,29
 
public void ajouterObservation() {
if(departement.equals("000null") || departement.equals("")) {
String[] depCom = commune.getText().split(" ");
if(depCom.length > 1) {
String dep = depCom[1].replace('(', ' ');
dep =dep.replace(')', ' ');
dep = dep.trim();
dep = dep.replace('\\',' ');
dep = dep.trim();
try
{
int nDep = Integer.parseInt(dep);
if(nDep > 0 && nDep < 110) {
departement = dep ;
}
}
catch(NumberFormatException e)
{
departement = "" ;
}
}
}
 
Observation obs=new Observation(espece.getText(),numeroNom,commune.getText(),departement,lieudit.getText(),station.getText(),milieu.getText(), comment.getText(),date.getRawValue());
observationMediateur.ajouterObservation(obs);
724,7 → 753,14
public void afficherDetailsObservation(Observation obs)
{
raz() ;
char g ;
String idLoc =obs.getIdentifiantLocalite().replaceAll(" ","/");
idLoc = idLoc.replaceAll("%","");
idLoc = idLoc.replaceAll("\"","");
idLoc = idLoc.replace('\\',' ');
idLoc = idLoc.trim();
if(!obs.getDate().equals("null") && !obs.getDate().equals("000null")) {
String[] dateEtHeure = obs.getDate().split(" ", 2);
if(verifierFormatDate(dateEtHeure[0])) {
748,10 → 784,16
comment.setValue(obs.getCommentaire()) ;
}
if(!obs.getLocalite().equals("null") && !obs.getLocalite().equals("000null")) {
commune.setValue(obs.getLocalite()) ;
if(!idLoc.equals("000null")) {
commune.setValue(obs.getLocalite()+" ("+idLoc+")") ;
}
else
{
commune.setValue(obs.getLocalite());
}
}
if(!obs.getIdentifiantLocalite().equals("null") && !obs.getIdentifiantLocalite().equals("000null")) {
departement = obs.getIdentifiantLocalite();
departement = idLoc;
}
if(!obs.getNomSaisi().equals("null") && !obs.getNomSaisi().equals("000null")) {
espece.setValue(obs.getNomSaisi()) ;
/trunk/src/org/tela_botanica/client/vues/ListeUtilisateurAdminVue.java
New file
0,0 → 1,90
package org.tela_botanica.client.vues;
 
import org.tela_botanica.client.CarnetEnLigneMediateur;
import org.tela_botanica.client.interfaces.Rafraichissable;
 
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.Widget;
import com.gwtext.client.core.EventObject;
import com.gwtext.client.data.ArrayReader;
import com.gwtext.client.data.FieldDef;
import com.gwtext.client.data.MemoryProxy;
import com.gwtext.client.data.RecordDef;
import com.gwtext.client.data.Store;
import com.gwtext.client.data.StringFieldDef;
import com.gwtext.client.widgets.Component;
import com.gwtext.client.widgets.Window;
import com.gwtext.client.widgets.event.ButtonListener;
import com.gwtext.client.widgets.event.ButtonListenerAdapter;
import com.gwtext.client.widgets.form.ComboBox;
import com.gwtext.client.widgets.menu.Menu;
 
public class ListeUtilisateurAdminVue extends Window implements Rafraichissable {
 
private CarnetEnLigneMediateur cMediateur = null ;
private ComboBox listeUtil = null ;
private Store storeUtil = null ;
private com.gwtext.client.widgets.Button OK = null;
public ListeUtilisateurAdminVue(CarnetEnLigneMediateur cMed) {
super("Choisissez un utilisateur") ;
this.cMediateur = cMed;
listeUtil=new ComboBox("Utilisateurs","utilisateur",180 );
final String resultTplUtil = "<div class=\"search-item-utilisateur\">{utilisateur}</div>";
 
listeUtil.setTpl(resultTplUtil);
listeUtil.setMode(ComboBox.REMOTE);
// commune.setPageSize(10); // Ne fonctionne pas
listeUtil.setItemSelector("div.search-item-utilisateur");
listeUtil.setTypeAhead(true);
listeUtil.setLoadingText("Recherche...");
OK= new com.gwtext.client.widgets.Button("OK");
add(listeUtil);
add(OK);
this.setSize(200, 50);
OK.addListener(new ButtonListenerAdapter() {
 
public void onClick(com.gwtext.client.widgets.Button button,
EventObject e) {
cMediateur.changerIdentite(listeUtil.getValue());
}
});
}
public void rafraichir(Object nouvelleDonnees,
boolean repandreRaffraichissement) {
if(nouvelleDonnees instanceof String[][]) {
Object[][] utilData = (Object[][])nouvelleDonnees ;
FieldDef defUtil = new StringFieldDef("utilisateur");
FieldDef[] defTab = {defUtil};
RecordDef rd = new RecordDef(defTab);
final MemoryProxy dataProxy = new MemoryProxy(utilData);
final ArrayReader reader = new ArrayReader(rd);
storeUtil =new Store(dataProxy,reader);
storeUtil.load() ;
listeUtil.setStore(storeUtil);
}
}
 
}
/trunk/src/org/tela_botanica/client/vues/ImageGeneriqueVue.java
99,12 → 99,13
urlImage=(String) nouvelleDonnees;
if (urlImage.length()==0) {
raz() ;
if (urlImage == null || urlImage.equals("null") || urlImage.length()==0) {
image.setUrl("ill_taxon.png") ;
image.setPixelSize(150, 150);
}
else {
image.setUrl(urlImage);
//verifierEtRetaillerImage();
verifierEtRetaillerImage();
}
}
145,6 → 146,7
// on ne fait rien
return;
}
 
// on prend la taille originale de l'image
int originalX = image.getWidth();
/trunk/src/org/tela_botanica/client/vues/BarreOutilsVue.java
74,12 → 74,12
 
imageMenu = new MenuImageVue(im);
filtreMenu = new MenuFiltreVue(im);
aideMenu = new MenuAideVue(im);
//aideMenu = new MenuAideVue(im);
images = new ToolbarMenuButton("Fichiers", imageMenu);
aide = new ToolbarMenuButton("Aide", aideMenu);
//aide = new ToolbarMenuButton("Aide", aideMenu);
 
this.addButton(images);
this.addButton(aide);
//this.addButton(aide);
}
 
/**