970 |
gduche |
1 |
package org.tela_botanica.client.composants;
|
|
|
2 |
|
|
|
3 |
import java.util.HashMap;
|
|
|
4 |
|
|
|
5 |
import org.tela_botanica.client.modeles.Valeur;
|
|
|
6 |
|
|
|
7 |
import com.extjs.gxt.ui.client.data.ModelData;
|
|
|
8 |
import com.extjs.gxt.ui.client.widget.form.ComboBox;
|
|
|
9 |
import com.extjs.gxt.ui.client.widget.form.DateField;
|
|
|
10 |
import com.extjs.gxt.ui.client.widget.form.LabelField;
|
|
|
11 |
import com.extjs.gxt.ui.client.widget.form.Radio;
|
|
|
12 |
import com.extjs.gxt.ui.client.widget.form.TextArea;
|
|
|
13 |
import com.extjs.gxt.ui.client.widget.form.TextField;
|
|
|
14 |
|
|
|
15 |
public class HashMapComposants extends HashMap {
|
|
|
16 |
|
|
|
17 |
public TextField getTextField(String name) {
|
|
|
18 |
return (TextField) get(name);
|
|
|
19 |
}
|
|
|
20 |
|
|
|
21 |
public DateField getDateField(String name) {
|
|
|
22 |
return (DateField) get(name);
|
|
|
23 |
}
|
|
|
24 |
|
|
|
25 |
public LabelField getLabelField(String name) {
|
|
|
26 |
return (LabelField) get(name);
|
|
|
27 |
}
|
|
|
28 |
|
|
|
29 |
public ChampMultiValeurs getChampMultiValeurs(String name) {
|
|
|
30 |
return (ChampMultiValeurs) get(name);
|
|
|
31 |
}
|
|
|
32 |
|
|
|
33 |
public ChampMultiValeursMultiTypes getChampMultiValeursMultiTypes(String name) {
|
|
|
34 |
return (ChampMultiValeursMultiTypes) get(name);
|
|
|
35 |
}
|
|
|
36 |
|
|
|
37 |
public ChampMultiValeursImage getChampMultiValeursImage(String name) {
|
|
|
38 |
return (ChampMultiValeursImage) get(name);
|
|
|
39 |
}
|
|
|
40 |
|
|
|
41 |
public Radio getRadio(String name) {
|
|
|
42 |
return (Radio) get(name);
|
|
|
43 |
}
|
|
|
44 |
|
|
|
45 |
public TextArea getTextArea(String name) {
|
|
|
46 |
return (TextArea) get(name);
|
|
|
47 |
}
|
|
|
48 |
|
|
|
49 |
public ComboBox<Valeur> getComboBoxValeur(String name) {
|
|
|
50 |
return (ComboBox<Valeur>) get(name);
|
|
|
51 |
}
|
|
|
52 |
|
|
|
53 |
public ComboBox getComboBox(String name) {
|
|
|
54 |
return (ComboBox<Valeur>) get(name);
|
|
|
55 |
}
|
|
|
56 |
}
|