Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 1261 → Rev 1262

/trunk/src/org/tela_botanica/client/composants/ChampMultiValeurs.java
8,6 → 8,9
import org.tela_botanica.client.modeles.aDonnee;
 
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.FieldEvent;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
82,6 → 85,10
initialiserChampMultiValeur(label, largeurTotale);
}
public ComboBox<Valeur> getTypes() {
return this.types;
}
public void setLabel(String label) {
if (label == null) {
label = "";
152,6 → 159,13
types.setStore(new ListStore<Valeur>());
types.setTypeAhead(true);
types.setTriggerAction(TriggerAction.ALL);
types.addListener(Events.Select, new Listener<FieldEvent>() {
public void handleEvent(FieldEvent fe) {
 
}
});
colonneConteneur.add(types, new ColumnData(largeurType));
}
159,7 → 173,7
champValeurCombo = new ComboBox<Valeur>();
champValeurCombo.setDisplayField("nom");
champValeurCombo.setStore(new ListStore<Valeur>());
colonneConteneur.add(champValeurCombo, new ColumnData(largeurChamp));
colonneConteneur.add(champValeurCombo, new ColumnData(largeurChamp));
} else {
champValeurTxt = new TextField<String>();
colonneConteneur.add(champValeurTxt, new ColumnData(largeurChamp));