01: /*
02: * Created on 04/02/2005
03: *
04: * Swing Components - visit http://sf.net/projects/gfd
05: *
06: * Copyright (C) 2004 Igor Regis da Silva Simões
07: *
08: * This program is free software; you can redistribute it and/or
09: * modify it under the terms of the GNU General Public License
10: * as published by the Free Software Foundation; either version 2
11: * of the License, or (at your option) any later version.
12: *
13: * This program is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16: * GNU General Public License for more details.
17: *
18: * You should have received a copy of the GNU General Public License
19: * along with this program; if not, write to the Free Software
20: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21: *
22: */
23: package br.com.gfp.data;
24:
25: import java.beans.PropertyDescriptor;
26:
27: import br.com.gfp.internationalization.ConfigLocalizacaoBeanInfoMessages;
28: import br.com.gfpshare.beans.property.editor.CountryPropertyEditor;
29: import br.com.gfpshare.beans.property.editor.LanguagePropertyEditor;
30:
31: import com.l2fprod.common.beans.BaseBeanInfo;
32:
33: /**
34: * Esta interface representa todos os dados de configuração para a
35: * funcionalidade de previsçao de rendimentos
36: *
37: * Não estranhe não existir um implementação concreta desta classe.
38: * A implementaçao concreta é criada on runtime através de um
39: * Dynamic Proxy.
40: *
41: * @author Igor Regis da Silva Simoes
42: * @since 04/02/2005 15:07:32
43: * @see br.com.gfpshare.config.Propriedades
44: */
45: public class ConfigLocalizacaoBeanInfo extends BaseBeanInfo {
46: /**
47: *
48: */
49: public ConfigLocalizacaoBeanInfo() {
50: super (ConfigLocalizacao.class);
51: PropertyDescriptor propriedade = null;
52:
53: propriedade = addProperty("Pais").setCategory(ConfigLocalizacaoBeanInfoMessages.getMessages().getString("general")); //$NON-NLS-1$ //$NON-NLS-2$
54: propriedade.setPropertyEditorClass(CountryPropertyEditor.class);
55: propriedade.setDisplayName(ConfigLocalizacaoBeanInfoMessages
56: .getMessages().getString("pais")); //$NON-NLS-1$
57: propriedade
58: .setShortDescription(ConfigLocalizacaoBeanInfoMessages
59: .getMessages().getString("paisDescricao")); //$NON-NLS-1$
60:
61: propriedade = addProperty("Idioma").setCategory(ConfigLocalizacaoBeanInfoMessages.getMessages().getString("general")); //$NON-NLS-1$ //$NON-NLS-2$
62: propriedade
63: .setPropertyEditorClass(LanguagePropertyEditor.class);
64: propriedade.setDisplayName(ConfigLocalizacaoBeanInfoMessages
65: .getMessages().getString("idioma")); //$NON-NLS-1$
66: propriedade
67: .setShortDescription(ConfigLocalizacaoBeanInfoMessages
68: .getMessages().getString("idomaDescricao")); //$NON-NLS-1$
69: }
70: }
|