01: /*
02: * Created on 30/06/2006
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.ConfigRedeBeanInfoMessages;
28: import br.com.gfpshare.beans.property.editor.ProxyPortPropertyEditor;
29:
30: import com.l2fprod.common.beans.BaseBeanInfo;
31:
32: /**
33: * Esta classe representa todos os dados de configuração para a
34: * funcionalidades de rede (porxy)
35: *
36: *
37: * @author Igor Regis da Silva Simoes
38: * @since 04/02/2005 15:07:32
39: * @see br.com.gfpshare.config.Propriedades
40: */
41: public class ConfigRedeBeanInfo extends BaseBeanInfo {
42: /**
43: *
44: */
45: public ConfigRedeBeanInfo() {
46: super (ConfigRede.class);
47: PropertyDescriptor propriedade = null;
48:
49: propriedade = addProperty("UseProxy").setCategory(
50: ConfigRedeBeanInfoMessages.getMessages().getString(
51: "general"));
52: propriedade.setDisplayName(ConfigRedeBeanInfoMessages
53: .getMessages().getString("UseProxy"));
54: propriedade.setShortDescription(ConfigRedeBeanInfoMessages
55: .getMessages().getString("UseProxyDescricao"));
56:
57: propriedade = addProperty("Proxy").setCategory(
58: ConfigRedeBeanInfoMessages.getMessages().getString(
59: "general"));
60: propriedade.setDisplayName(ConfigRedeBeanInfoMessages
61: .getMessages().getString("Proxy"));
62: propriedade.setShortDescription(ConfigRedeBeanInfoMessages
63: .getMessages().getString("ProxyDescricao"));
64:
65: propriedade = addProperty("ProxyPort").setCategory(
66: ConfigRedeBeanInfoMessages.getMessages().getString(
67: "general"));
68: propriedade.setDisplayName(ConfigRedeBeanInfoMessages
69: .getMessages().getString("PortaProxy"));
70: propriedade.setShortDescription(ConfigRedeBeanInfoMessages
71: .getMessages().getString("PortaProxyDescricao"));
72: propriedade
73: .setPropertyEditorClass(ProxyPortPropertyEditor.class);
74:
75: propriedade = addProperty("NeedUser").setCategory(
76: ConfigRedeBeanInfoMessages.getMessages().getString(
77: "general"));
78: propriedade.setDisplayName(ConfigRedeBeanInfoMessages
79: .getMessages().getString("NeedUser"));
80: propriedade.setShortDescription(ConfigRedeBeanInfoMessages
81: .getMessages().getString("NeedUserDescricao"));
82:
83: propriedade = addProperty("ProxyUser").setCategory(
84: ConfigRedeBeanInfoMessages.getMessages().getString(
85: "general"));
86: propriedade.setDisplayName(ConfigRedeBeanInfoMessages
87: .getMessages().getString("ProxyUser"));
88: propriedade.setShortDescription(ConfigRedeBeanInfoMessages
89: .getMessages().getString("ProxyUserDescricao"));
90: }
91:
92: }
|