KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > apps > ConfirmPanelBeanInfo


1 package org.compiere.apps;
2
3 import java.beans.*;
4
5 /**
6  * Generated
7  *
8  * @author Jorg Janke
9  * @version $Id: ConfirmPanelBeanInfo.java,v 1.3 2002/01/11 06:11:38 jjanke Exp $
10  */

11
12 public class ConfirmPanelBeanInfo extends SimpleBeanInfo
13 {
14     private Class JavaDoc beanClass = ConfirmPanel.class;
15     private String JavaDoc iconColor16x16Filename;
16     private String JavaDoc iconColor32x32Filename;
17     private String JavaDoc iconMono16x16Filename;
18     private String JavaDoc iconMono32x32Filename;
19
20     public ConfirmPanelBeanInfo()
21     {
22     }
23     public PropertyDescriptor[] getPropertyDescriptors()
24     {
25         try
26         {
27             PropertyDescriptor _cancelButton = new PropertyDescriptor("cancelButton", beanClass, "getCancelButton", null);
28             PropertyDescriptor _cancelVisible = new PropertyDescriptor("cancelVisible", beanClass, "isCancelVisible", "setCancelVisible");
29             PropertyDescriptor _customizeButton = new PropertyDescriptor("customizeButton", beanClass, "getCustomizeButton", null);
30             PropertyDescriptor _enabled = new PropertyDescriptor("enabled", beanClass, null, "setEnabled");
31             PropertyDescriptor _historyButton = new PropertyDescriptor("historyButton", beanClass, "getHistoryButton", null);
32             PropertyDescriptor _OKButton = new PropertyDescriptor("OKButton", beanClass, "getOKButton", null);
33             PropertyDescriptor _OKVisible = new PropertyDescriptor("OKVisible", beanClass, "isOKVisible", "setOKVisible");
34             PropertyDescriptor _refreshButton = new PropertyDescriptor("refreshButton", beanClass, "getRefreshButton", null);
35             PropertyDescriptor _zoomButton = new PropertyDescriptor("zoomButton", beanClass, "getZoomButton", null);
36             PropertyDescriptor[] pds = new PropertyDescriptor[] {
37                 _cancelButton,
38                 _cancelVisible,
39                 _customizeButton,
40                 _enabled,
41                 _historyButton,
42                 _OKButton,
43                 _OKVisible,
44                 _refreshButton,
45                 _zoomButton};
46             return pds;
47
48
49
50
51
52
53
54
55
56 }
57         catch(IntrospectionException ex)
58         {
59             ex.printStackTrace();
60             return null;
61         }
62     }
63     public java.awt.Image JavaDoc getIcon(int iconKind)
64     {
65         switch (iconKind) {
66         case BeanInfo.ICON_COLOR_16x16:
67               return iconColor16x16Filename != null ? loadImage(iconColor16x16Filename) : null;
68         case BeanInfo.ICON_COLOR_32x32:
69               return iconColor32x32Filename != null ? loadImage(iconColor32x32Filename) : null;
70         case BeanInfo.ICON_MONO_16x16:
71               return iconMono16x16Filename != null ? loadImage(iconMono16x16Filename) : null;
72         case BeanInfo.ICON_MONO_32x32:
73               return iconMono32x32Filename != null ? loadImage(iconMono32x32Filename) : null;
74                                 }
75         return null;
76     }
77     public BeanInfo[] getAdditionalBeanInfo()
78     {
79         Class JavaDoc superclass = beanClass.getSuperclass();
80         try
81         {
82             BeanInfo superBeanInfo = Introspector.getBeanInfo(superclass);
83             return new BeanInfo[] { superBeanInfo };
84         }
85         catch(IntrospectionException ex)
86         {
87             ex.printStackTrace();
88             return null;
89         }
90     }
91 }
Popular Tags