KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejtools > management > browser > ui > ManagedObjectViewer


1 /*
2  * EJTools, the Enterprise Java Tools
3  *
4  * Distributable under LGPL license.
5  * See terms of license at www.gnu.org.
6  */

7 package org.ejtools.management.browser.ui;
8
9 import java.awt.GridBagLayout JavaDoc;
10 import java.beans.Customizer JavaDoc;
11 import java.util.ResourceBundle JavaDoc;
12
13 import javax.management.MBeanAttributeInfo JavaDoc;
14 import javax.swing.BorderFactory JavaDoc;
15 import javax.swing.JPanel JavaDoc;
16 import javax.swing.JScrollPane JavaDoc;
17
18 import org.ejtools.management.browser.model.ManagedObject;
19
20 /**
21  * Description of the Class
22  *
23  * @author letiemble
24  * @version $Revision: 1.6 $
25  */

26 public abstract class ManagedObjectViewer extends JScrollPane JavaDoc implements Customizer JavaDoc
27 {
28    /** Description of the Field */
29    protected ManagedObject object = null;
30    /** Description of the Field */
31    protected JPanel JavaDoc panel = null;
32    /** Description of the Field */
33    protected static String JavaDoc MO_ATTRIBUTE_EVENTPROVIDER = "eventprovider";
34    /** Description of the Field */
35    protected static String JavaDoc MO_ATTRIBUTE_EVENTTYPES = "eventtypes";
36    /** Description of the Field */
37    protected static String JavaDoc MO_ATTRIBUTE_STATEMANAGEABLE = "statemanageable";
38    /** Description of the Field */
39    protected static String JavaDoc MO_ATTRIBUTE_STATISTICSPROVIDER = "statisticsprovider";
40    /** Description of the Field */
41    protected static String JavaDoc MO_ATTRIBUTE_STATS = "stats";
42    /** Description of the Field */
43    protected static ResourceBundle JavaDoc resources = ResourceBundle.getBundle("org.ejtools.management.browser.Resources");
44
45
46    /**Constructor for the ManagedObjectViewer object */
47    public ManagedObjectViewer()
48    {
49       super(new JPanel JavaDoc());
50       this.setBorder(BorderFactory.createEmptyBorder());
51       this.panel = (JPanel JavaDoc) getViewport().getView();
52       this.panel.setLayout(new GridBagLayout JavaDoc());
53    }
54
55
56    /**
57     *Constructor for the ManagedObjectViewer object
58     *
59     * @param bean Description of the Parameter
60     */

61    public ManagedObjectViewer(Object JavaDoc bean)
62    {
63       this();
64       this.setObject(bean);
65    }
66
67
68    /**
69     * Description of the Method
70     *
71     * @param infos Description of the Parameter
72     * @return Description of the Return Value
73     */

74    public abstract MBeanAttributeInfo JavaDoc[] filter(MBeanAttributeInfo JavaDoc[] infos);
75 }
76
Popular Tags