Subversion Repositories eFlore/Applications.coel

Rev

Rev 1865 | Go to most recent revision | Details | Compare with Previous | 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
 
1007 jpm 18
	@SuppressWarnings("unchecked")
19
	public TextField getTextField(String name)	{
20
		return (TextField) get(name);
970 gduche 21
	}
22
 
23
	public DateField getDateField(String name)	{
24
		return (DateField) get(name);
25
	}
26
 
27
	public LabelField getLabelField(String name)	{
28
		return (LabelField) get(name);
29
	}
30
 
31
	public ChampMultiValeurs getChampMultiValeurs(String name)	{
32
		return (ChampMultiValeurs) get(name);
33
	}
34
 
1292 cyprien 35
	public ChampMultiValeursPaginable getChampMultiValeursPaginable(String name)	{
36
		return (ChampMultiValeursPaginable) get(name);
37
	}
38
 
970 gduche 39
	public ChampMultiValeursMultiTypes getChampMultiValeursMultiTypes(String name)	{
40
		return (ChampMultiValeursMultiTypes) get(name);
41
	}
42
 
1292 cyprien 43
	public ChampMultiValeursMultiTypesPaginable getChampMultiValeursMultiTypesPaginable(String name)	{
44
		return (ChampMultiValeursMultiTypesPaginable) get(name);
45
	}
46
 
970 gduche 47
	public ChampMultiValeursImage getChampMultiValeursImage(String name)	{
48
		return (ChampMultiValeursImage) get(name);
49
	}
50
 
51
	public Radio getRadio(String name)	{
52
		return (Radio) get(name);
53
	}
54
 
55
	public TextArea getTextArea(String name)	{
56
		return (TextArea) get(name);
57
	}
58
 
1006 jpm 59
	@SuppressWarnings("unchecked")
60
	public ComboBox<Valeur> getComboBoxValeur(String nom)	{
61
		return (ComboBox<Valeur>) get(nom);
970 gduche 62
	}
63
 
1007 jpm 64
	@SuppressWarnings("unchecked")
65
	public ComboBox getComboBox(String nom)	{
66
		return (ComboBox) get(nom);
970 gduche 67
	}
1329 cyprien 68
 
69
	public ChampComboBoxRechercheTempsReelPaginable getComboBoxRechercheTempsReelPaginable(String nom) {
70
		return (ChampComboBoxRechercheTempsReelPaginable) get(nom);
71
	}
970 gduche 72
}