Subversion Repositories eFlore/Applications.coel

Compare Revisions

No changes between revisions

Ignore whitespace Rev 1368 → Rev 1369

/trunk/src/org/tela_botanica/client/composants/ChampComboBoxRechercheTempsReelPaginable.java
18,6 → 18,11
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.VerticalPanel;
import com.extjs.gxt.ui.client.widget.form.ComboBox;
import com.extjs.gxt.ui.client.widget.layout.AbsoluteLayout;
import com.extjs.gxt.ui.client.widget.layout.AnchorLayout;
import com.extjs.gxt.ui.client.widget.layout.BoxLayout;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
import com.extjs.gxt.ui.client.widget.layout.FormData;
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
 
44,7 → 49,7
private int start = 0;
private int limit = 10;
private int largeur = 200;
private int largeur = 370;
 
private LayoutContainer lc = null;
private BasePagingLoadConfig plc = null;
93,8 → 98,9
}
});
combo = new ComboBox<ModelData>();
combo = new ComboBox<ModelData>();
combo.setWidth(largeur);
this.setWidth(largeur);
combo.setDisplayField(displayName);
combo.setHideTrigger(false);
combo.setPageSize(plc.getLimit());
101,7 → 107,7
store = new ListStore<ModelData>(loader);
combo.setStore(store);
loader.load(plc, recherche);
 
combo.addListener(Events.KeyUp, new Listener<BaseEvent>() {
public void handleEvent(BaseEvent be) {
112,14 → 118,10
}
});
lc = new LayoutContainer();
lc.add(combo);
add(lc);
 
this.add(combo);
}
 
/*------------
Accesseurs
------------*/
147,14 → 149,16
public void setWidth(int tailleLabel, int largeurTotale)
{
this.setWidth(largeurTotale);
this.largeur = largeurTotale;
// FIXME - problème avec la largeur de la combobox
this.combo.setWidth(largeurTotale - tailleLabel);
FormLayout fl = new FormLayout();
fl.setLabelWidth(tailleLabel);
this.lc.setSize(largeurTotale, 0);
this.lc.setLayout(fl);
fl.setDefaultWidth(largeurTotale - tailleLabel);
this.setLayout(fl);
 
this.layout();
}
/*-----------------------------
Property changes:
Added: svn:mergeinfo
Merged /branches/v1.0-syrah/src/org/tela_botanica/client/composants/ChampComboBoxRechercheTempsReelPaginable.java:r1136-1208,1292-1367