Line 1... |
Line 1... |
1 |
package org.tela_botanica.client.vues;
|
1 |
package org.tela_botanica.client.vues.observation;
|
Line 2... |
Line 2... |
2 |
|
2 |
|
Line 10... |
Line 10... |
10 |
import org.tela_botanica.client.modeles.Observation;
|
10 |
import org.tela_botanica.client.modeles.Observation;
|
11 |
import org.tela_botanica.client.modeles.ReferentielCommune;
|
11 |
import org.tela_botanica.client.modeles.ReferentielCommune;
|
12 |
import org.tela_botanica.client.modeles.ReferentielNom;
|
12 |
import org.tela_botanica.client.modeles.ReferentielNom;
|
13 |
import org.tela_botanica.client.observation.ObservationMediateur;
|
13 |
import org.tela_botanica.client.observation.ObservationMediateur;
|
Line 14... |
Line -... |
14 |
|
- |
|
15 |
import com.google.gwt.user.client.Window;
|
14 |
|
16 |
import com.gwtext.client.core.EventCallback;
|
15 |
import com.gwtext.client.core.EventCallback;
|
17 |
import com.gwtext.client.core.EventObject;
|
16 |
import com.gwtext.client.core.EventObject;
|
18 |
import com.gwtext.client.core.ListenerConfig;
|
17 |
import com.gwtext.client.core.ListenerConfig;
|
19 |
import com.gwtext.client.core.Position;
|
18 |
import com.gwtext.client.core.Position;
|
Line 24... |
Line 23... |
24 |
import com.gwtext.client.data.SimpleStore;
|
23 |
import com.gwtext.client.data.SimpleStore;
|
25 |
import com.gwtext.client.data.Store;
|
24 |
import com.gwtext.client.data.Store;
|
26 |
import com.gwtext.client.data.StringFieldDef;
|
25 |
import com.gwtext.client.data.StringFieldDef;
|
27 |
import com.gwtext.client.widgets.BoxComponent;
|
26 |
import com.gwtext.client.widgets.BoxComponent;
|
28 |
import com.gwtext.client.widgets.Button;
|
27 |
import com.gwtext.client.widgets.Button;
|
29 |
import com.gwtext.client.widgets.Component;
|
- |
|
30 |
import com.gwtext.client.widgets.Container;
|
28 |
import com.gwtext.client.widgets.Container;
|
31 |
import com.gwtext.client.widgets.Panel;
|
29 |
import com.gwtext.client.widgets.Panel;
|
32 |
import com.gwtext.client.widgets.Toolbar;
|
30 |
import com.gwtext.client.widgets.Toolbar;
|
33 |
import com.gwtext.client.widgets.event.BoxComponentListener;
|
- |
|
34 |
import com.gwtext.client.widgets.event.BoxComponentListenerAdapter;
|
31 |
import com.gwtext.client.widgets.event.BoxComponentListenerAdapter;
|
35 |
import com.gwtext.client.widgets.event.ButtonListenerAdapter;
|
32 |
import com.gwtext.client.widgets.event.ButtonListenerAdapter;
|
36 |
import com.gwtext.client.widgets.event.ContainerListenerAdapter;
|
33 |
import com.gwtext.client.widgets.event.ContainerListenerAdapter;
|
37 |
import com.gwtext.client.widgets.form.ComboBox;
|
34 |
import com.gwtext.client.widgets.form.ComboBox;
|
38 |
import com.gwtext.client.widgets.form.DateField;
|
35 |
import com.gwtext.client.widgets.form.DateField;
|
Line 161... |
Line 158... |
161 |
panneauSecondeColonne.setLayout(new FormLayout());
|
158 |
panneauSecondeColonne.setLayout(new FormLayout());
|
162 |
panneauSecondeColonne.setBorder(false);
|
159 |
panneauSecondeColonne.setBorder(false);
|
Line 163... |
Line 160... |
163 |
|
160 |
|
Line -... |
Line 161... |
- |
|
161 |
this.setPaddings(5) ;
|
- |
|
162 |
|
164 |
this.setPaddings(5) ;
|
163 |
// Accesskey pour debugging
|
- |
|
164 |
|
165 |
|
165 |
commune=new ComboBox("Commune","commune\" accesskey=\"1",tailleChamps );
|
166 |
commune=new ComboBox("Commune","commune",tailleChamps );
|
166 |
|
167 |
final String resultTplCommune = "<div class=\"search-item-commune\">{commune}</div>";
|
167 |
final String resultTplCommune = "<div class=\"search-item-commune\">{commune}</div>";
|
168 |
commune.setTpl(resultTplCommune);
|
168 |
commune.setTpl(resultTplCommune);
|
169 |
commune.setMode(ComboBox.REMOTE);
|
169 |
commune.setMode(ComboBox.REMOTE);
|