Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 1254 → Rev 1247

/branches/v1.0-syrah/src/org/tela_botanica/client/composants/ChampMultiValeurs.java
8,9 → 8,6
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;
85,10 → 82,6
initialiserChampMultiValeur(label, largeurTotale);
}
public ComboBox<Valeur> getTypes() {
return this.types;
}
public void setLabel(String label) {
if (label == null) {
label = "";
159,13 → 152,6
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));
}
173,7 → 159,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));