[Ejtools-cvs] applications/management.browser/src/main/org/ejtools/management/browser/ui ManagedObje
Brought to you by:
letiemble
From: <let...@us...> - 2003-12-14 09:49:31
|
Update of /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/ui In directory sc8-pr-cvs1:/tmp/cvs-serv21061/management.browser/src/main/org/ejtools/management/browser/ui Modified Files: ManagedObjectViewer.java Log Message: Add more javadocs. Adjust workspace persistence. Index: ManagedObjectViewer.java =================================================================== RCS file: /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/ui/ManagedObjectViewer.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ManagedObjectViewer.java 27 Nov 2003 01:39:48 -0000 1.5 --- ManagedObjectViewer.java 13 Dec 2003 22:31:57 -0000 1.6 *************** *** 1,75 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.management.browser.ui; ! ! import java.awt.GridBagLayout; ! import java.beans.Customizer; ! import java.util.ResourceBundle; ! ! import javax.management.MBeanAttributeInfo; ! import javax.swing.BorderFactory; ! import javax.swing.JPanel; ! import javax.swing.JScrollPane; ! ! import org.ejtools.management.browser.model.ManagedObject; ! ! /** ! * Description of the Class ! * ! * @author letiemble ! * @version $Revision$ ! */ ! public abstract class ManagedObjectViewer extends JScrollPane implements Customizer ! { ! /** Description of the Field */ ! protected ManagedObject object = null; ! /** Description of the Field */ ! protected JPanel panel = null; ! /** Description of the Field */ ! protected static String MO_ATTRIBUTE_EVENTPROVIDER = "eventprovider"; ! /** Description of the Field */ ! protected static String MO_ATTRIBUTE_EVENTTYPES = "eventtypes"; ! /** Description of the Field */ ! protected static String MO_ATTRIBUTE_STATEMANAGEABLE = "statemanageable"; ! /** Description of the Field */ ! protected static String MO_ATTRIBUTE_STATISTICSPROVIDER = "statisticsprovider"; ! /** Description of the Field */ ! protected static String MO_ATTRIBUTE_STATS = "stats"; ! /** Description of the Field */ ! protected static ResourceBundle resources = ResourceBundle.getBundle("org.ejtools.management.browser.Resources"); ! ! ! /**Constructor for the ManagedObjectViewer object */ ! public ManagedObjectViewer() ! { ! super(new JPanel()); ! this.setBorder(BorderFactory.createEmptyBorder()); ! this.panel = (JPanel) getViewport().getView(); ! this.panel.setLayout(new GridBagLayout()); ! } ! ! ! /** ! *Constructor for the ManagedObjectViewer object ! * ! * @param bean Description of the Parameter ! */ ! public ManagedObjectViewer(Object bean) ! { ! this(); ! this.setObject(bean); ! } ! ! ! /** ! * Description of the Method ! * ! * @param infos Description of the Parameter ! * @return Description of the Return Value ! */ ! public abstract MBeanAttributeInfo[] filter(MBeanAttributeInfo[] infos); ! } --- 1,75 ---- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.management.browser.ui; ! ! import java.awt.GridBagLayout; ! import java.beans.Customizer; ! import java.util.ResourceBundle; ! ! import javax.management.MBeanAttributeInfo; ! import javax.swing.BorderFactory; ! import javax.swing.JPanel; ! import javax.swing.JScrollPane; ! ! import org.ejtools.management.browser.model.ManagedObject; ! ! /** ! * Description of the Class ! * ! * @author letiemble ! * @version $Revision$ ! */ ! public abstract class ManagedObjectViewer extends JScrollPane implements Customizer ! { ! /** Description of the Field */ ! protected ManagedObject object = null; ! /** Description of the Field */ ! protected JPanel panel = null; ! /** Description of the Field */ ! protected static String MO_ATTRIBUTE_EVENTPROVIDER = "eventprovider"; ! /** Description of the Field */ ! protected static String MO_ATTRIBUTE_EVENTTYPES = "eventtypes"; ! /** Description of the Field */ ! protected static String MO_ATTRIBUTE_STATEMANAGEABLE = "statemanageable"; ! /** Description of the Field */ ! protected static String MO_ATTRIBUTE_STATISTICSPROVIDER = "statisticsprovider"; ! /** Description of the Field */ ! protected static String MO_ATTRIBUTE_STATS = "stats"; ! /** Description of the Field */ ! protected static ResourceBundle resources = ResourceBundle.getBundle("org.ejtools.management.browser.Resources"); ! ! ! /**Constructor for the ManagedObjectViewer object */ ! public ManagedObjectViewer() ! { ! super(new JPanel()); ! this.setBorder(BorderFactory.createEmptyBorder()); ! this.panel = (JPanel) getViewport().getView(); ! this.panel.setLayout(new GridBagLayout()); ! } ! ! ! /** ! *Constructor for the ManagedObjectViewer object ! * ! * @param bean Description of the Parameter ! */ ! public ManagedObjectViewer(Object bean) ! { ! this(); ! this.setObject(bean); ! } ! ! ! /** ! * Description of the Method ! * ! * @param infos Description of the Parameter ! * @return Description of the Return Value ! */ ! public abstract MBeanAttributeInfo[] filter(MBeanAttributeInfo[] infos); ! } |