Subversion Repositories eFlore/Applications.coel

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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.widget.form.ComboBox;
8
import com.extjs.gxt.ui.client.widget.form.DateField;
9
import com.extjs.gxt.ui.client.widget.form.LabelField;
10
import com.extjs.gxt.ui.client.widget.form.Radio;
11
import com.extjs.gxt.ui.client.widget.form.TextArea;
12
import com.extjs.gxt.ui.client.widget.form.TextField;
13
 
1006 jpm 14
public class HashMapComposants extends HashMap<Object, Object> {
970 gduche 15
 
1006 jpm 16
	private static final long serialVersionUID = -3087869118215860287L;
17
 
18
	public TextField<?> getTextField(String name)	{
19
		return (TextField<?>) get(name);
970 gduche 20
	}
21
 
22
	public DateField getDateField(String name)	{
23
		return (DateField) get(name);
24
	}
25
 
26
	public LabelField getLabelField(String name)	{
27
		return (LabelField) get(name);
28
	}
29
 
30
	public ChampMultiValeurs getChampMultiValeurs(String name)	{
31
		return (ChampMultiValeurs) get(name);
32
	}
33
 
34
	public ChampMultiValeursMultiTypes getChampMultiValeursMultiTypes(String name)	{
35
		return (ChampMultiValeursMultiTypes) get(name);
36
	}
37
 
38
	public ChampMultiValeursImage getChampMultiValeursImage(String name)	{
39
		return (ChampMultiValeursImage) get(name);
40
	}
41
 
42
	public Radio getRadio(String name)	{
43
		return (Radio) get(name);
44
	}
45
 
46
	public TextArea getTextArea(String name)	{
47
		return (TextArea) get(name);
48
	}
49
 
1006 jpm 50
	@SuppressWarnings("unchecked")
51
	public ComboBox<Valeur> getComboBoxValeur(String nom)	{
52
		return (ComboBox<Valeur>) get(nom);
970 gduche 53
	}
54
 
1006 jpm 55
	public ComboBox<?> getComboBox(String nom)	{
56
		return (ComboBox<?>) get(nom);
970 gduche 57
	}
58
}