Subversion Repositories eFlore/Applications.coel

Rev

Rev 1329 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

package org.tela_botanica.client.composants;

import java.util.HashMap;

import org.tela_botanica.client.modeles.Valeur;

import com.extjs.gxt.ui.client.widget.form.ComboBox;
import com.extjs.gxt.ui.client.widget.form.DateField;
import com.extjs.gxt.ui.client.widget.form.LabelField;
import com.extjs.gxt.ui.client.widget.form.Radio;
import com.extjs.gxt.ui.client.widget.form.TextArea;
import com.extjs.gxt.ui.client.widget.form.TextField;

public class HashMapComposants extends HashMap<Object, Object> {

        private static final long serialVersionUID = -3087869118215860287L;

        @SuppressWarnings("unchecked")
        public TextField getTextField(String name)      {
                return (TextField) get(name);           
        }
        
        public DateField getDateField(String name)      {
                return (DateField) get(name);
        }
        
        public LabelField getLabelField(String name)    {
                return (LabelField) get(name);
        }
        
        public ChampMultiValeurs getChampMultiValeurs(String name)      {
                return (ChampMultiValeurs) get(name);
        }
        
        public ChampMultiValeursPaginable getChampMultiValeursPaginable(String name)    {
                return (ChampMultiValeursPaginable) get(name);
        }
        
        public ChampMultiValeursMultiTypes getChampMultiValeursMultiTypes(String name)  {
                return (ChampMultiValeursMultiTypes) get(name);
        }
        
        public ChampMultiValeursMultiTypesPaginable getChampMultiValeursMultiTypesPaginable(String name)        {
                return (ChampMultiValeursMultiTypesPaginable) get(name);
        }
        
        public ChampMultiValeursImage getChampMultiValeursImage(String name)    {
                return (ChampMultiValeursImage) get(name);
        }
        
        public Radio getRadio(String name)      {
                return (Radio) get(name); 
        }
        
        public TextArea getTextArea(String name)        {
                return (TextArea) get(name); 
        }
        
        @SuppressWarnings("unchecked")
        public ComboBox<Valeur> getComboBoxValeur(String nom)   {
                return (ComboBox<Valeur>) get(nom);
        }
        
        @SuppressWarnings("unchecked")
        public ComboBox getComboBox(String nom) {
                return (ComboBox) get(nom);
        }
        
        public ChampComboBoxRechercheTempsReelPaginable getComboBoxRechercheTempsReelPaginable(String nom) {
                return (ChampComboBoxRechercheTempsReelPaginable) get(nom);
        }
}