Subversion Repositories eFlore/Archives.cel-v2

Compare Revisions

Ignore whitespace Rev 30 → Rev 31

/trunk/src/org/tela_botanica/client/vues/ListeImageVue.java
11,6 → 11,9
import com.google.gwt.core.client.JavaScriptObject;
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;
import com.gwtext.client.core.JsObject;
import com.gwtext.client.data.ArrayReader;
import com.gwtext.client.data.FieldDef;
import com.gwtext.client.data.IntegerFieldDef;
20,6 → 23,7
import com.gwtext.client.data.Store;
import com.gwtext.client.data.StoreMgr;
import com.gwtext.client.data.StringFieldDef;
import com.gwtext.client.util.JavaScriptObjectHelper;
import com.gwtext.client.widgets.BoxComponent;
import com.gwtext.client.widgets.Component;
import com.gwtext.client.widgets.Container;
69,6 → 73,8
// store qui gère les données de la liste d'images
private Store st = null;
private ColumnConfig cl = null;
private pageToolBarVue bt = null ;
 
public ListeImageVue(ImageMediateur im) {
 
77,12 → 83,15
this.setId("listeImageGrid");
 
this.iMediateur = im;
bt = new pageToolBarVue(im);
this.setBottomToolbar(bt) ;
 
numImage = new ColumnConfig("numéro", "num_image", 100, true);
numImage = new ColumnConfig("numéro", "num_image", 30, true);
datImage = new ColumnConfig("date", "dat_image", 120, true);
lieImage = new ColumnConfig("lieu", "lie_image", 120, true);
appImage = new ColumnConfig("appareil", "app_image", 200, true);
urlImage = new ColumnConfig("Image", "url_image_S", 200, true,
urlImage = new ColumnConfig("Image", "url_image_S", 30, true,
new Renderer() {
 
public String render(Object value,
97,11 → 106,12
 
});
 
ColumnConfig[] cm = { numImage, datImage, lieImage, appImage, urlImage };
ColumnConfig[] cm = {numImage, urlImage, datImage, lieImage, appImage};
modeleColonnes = new ColumnModel(cm);
this.setColumnModel(modeleColonnes);
this.setAutoScroll(true);
this.setAutoWidth(true);
this.setEnableColumnResize(true);
 
// creation du store
FieldDef defNumImage = new IntegerFieldDef("num_image");
118,7 → 128,6
this.setStore(st);
this.getView().setAutoFill(true);
 
// this.setLoadMask(true) ;
this.setLoadMask("chargement");
 
ajouterListeners();
233,6 → 242,7
st = (Store) nouvelleDonnees;
st.load();
this.reconfigure(st, this.getColumnModel());
}
 
if (repandreRafraichissement) {
248,6 → 258,11
getSelectionModel().selectRecords(sel);
}
}
public pageToolBarVue getToolBarVue()
{
return bt ;
}
 
/**
* @param estInstancie