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; |
70,6 → 74,8 |
private Store st = null; |
private ColumnConfig cl = null; |
|
private pageToolBarVue bt = null ; |
|
public ListeImageVue(ImageMediateur im) { |
|
super(); |
78,11 → 84,14 |
|
this.iMediateur = im; |
|
numImage = new ColumnConfig("numéro", "num_image", 100, true); |
bt = new pageToolBarVue(im); |
this.setBottomToolbar(bt) ; |
|
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) { |
249,6 → 259,11 |
} |
} |
|
public pageToolBarVue getToolBarVue() |
{ |
return bt ; |
} |
|
/** |
* @param estInstancie |
* the estInstancie to set |