[Ejtools-cvs] applications/management.browser/src/main/org/ejtools/management/browser/frame Notifica
Brought to you by:
letiemble
Update of /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/frame In directory sc8-pr-cvs1:/tmp/cvs-serv21061/management.browser/src/main/org/ejtools/management/browser/frame Modified Files: NotificationsInternalFrame.java ResourceIndexer.java ResourceRenderer.java ServerInternalFrame.java Log Message: Add more javadocs. Adjust workspace persistence. Index: NotificationsInternalFrame.java =================================================================== RCS file: /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/frame/NotificationsInternalFrame.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** NotificationsInternalFrame.java 27 Nov 2003 01:39:47 -0000 1.3 --- NotificationsInternalFrame.java 13 Dec 2003 22:31:56 -0000 1.4 *************** *** 1,59 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.management.browser.frame; ! ! import java.awt.BorderLayout; ! import java.beans.PropertyChangeEvent; ! import java.util.ResourceBundle; ! ! import javax.swing.JScrollPane; ! ! import org.ejtools.adwt.service.BeanContextInternalFrame; ! import org.ejtools.management.browser.model.service.NotificationServiceProvider; ! ! /** ! * Description of the Class ! * ! * @author Laurent Etiemble ! * @version $Revision$ ! */ ! public class NotificationsInternalFrame extends BeanContextInternalFrame ! { ! /** Description of the Field */ ! protected NotificationServiceProvider provider = null; ! /** Description of the Field */ ! private static ResourceBundle resources = ResourceBundle.getBundle("org.ejtools.management.browser.Resources"); ! ! ! /** ! * Constructor for GraphInternalFrame. ! * ! * @param provider Description of the Parameter ! */ ! public NotificationsInternalFrame(NotificationServiceProvider provider) ! { ! super(); ! ! this.provider = provider; ! ! JScrollPane pane = new JScrollPane(this.provider.getComponent()); ! this.frame.getContentPane().add(BorderLayout.CENTER, pane); ! } ! ! ! /** ! * @param event Description of the Parameter ! */ ! public void propertyChange(PropertyChangeEvent event) ! { ! if (event.getPropertyName().equals("name")) ! { ! String newName = (String) event.getNewValue(); ! this.setTitle(resources.getString("notification.text.prefix") + " : " + newName); ! } ! } ! } --- 1,59 ---- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.management.browser.frame; ! ! import java.awt.BorderLayout; ! import java.beans.PropertyChangeEvent; ! import java.util.ResourceBundle; ! ! import javax.swing.JScrollPane; ! ! import org.ejtools.adwt.service.BeanContextInternalFrame; ! import org.ejtools.management.browser.model.service.NotificationServiceProvider; ! ! /** ! * Description of the Class ! * ! * @author Laurent Etiemble ! * @version $Revision$ ! */ ! public class NotificationsInternalFrame extends BeanContextInternalFrame ! { ! /** Description of the Field */ ! protected NotificationServiceProvider provider = null; ! /** Description of the Field */ ! private static ResourceBundle resources = ResourceBundle.getBundle("org.ejtools.management.browser.Resources"); ! ! ! /** ! * Constructor for GraphInternalFrame. ! * ! * @param provider Description of the Parameter ! */ ! public NotificationsInternalFrame(NotificationServiceProvider provider) ! { ! super(); ! ! this.provider = provider; ! ! JScrollPane pane = new JScrollPane(this.provider.getComponent()); ! this.frame.getContentPane().add(BorderLayout.CENTER, pane); ! } ! ! ! /** ! * @param event Description of the Parameter ! */ ! public void propertyChange(PropertyChangeEvent event) ! { ! if (event.getPropertyName().equals("name")) ! { ! String newName = (String) event.getNewValue(); ! this.setTitle(resources.getString("notification.text.prefix") + " : " + newName); ! } ! } ! } Index: ResourceIndexer.java =================================================================== RCS file: /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/frame/ResourceIndexer.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ResourceIndexer.java 27 Nov 2003 01:39:47 -0000 1.4 --- ResourceIndexer.java 13 Dec 2003 22:31:56 -0000 1.5 *************** *** 1,49 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.management.browser.frame; ! ! import org.ejtools.adwt.util.DefaultObjectIndexer; ! import org.ejtools.management.browser.model.ManagedObject; ! ! /** ! * @author Laurent Etiemble ! * @version $Revision$ ! */ ! public class ResourceIndexer extends DefaultObjectIndexer ! { ! /** ! * Description of the Method ! * ! * @param key Description of the Parameter ! * @param value Description of the Parameter ! * @return Description of the Return Value ! */ ! public Object put(Object key, Object value) ! { ! if (key instanceof ManagedObject) ! { ! return super.put(((ManagedObject) key).getCanonicalName(), value); ! } ! return super.put(key, value); ! } ! ! ! /** ! * Description of the Method ! * ! * @param key Description of the Parameter ! * @return Description of the Return Value ! */ ! public Object remove(Object key) ! { ! if (key instanceof ManagedObject) ! { ! return super.remove(((ManagedObject) key).getCanonicalName()); ! } ! return super.remove(key); ! } ! } --- 1,49 ---- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.management.browser.frame; ! ! import org.ejtools.adwt.util.DefaultObjectIndexer; ! import org.ejtools.management.browser.model.ManagedObject; ! ! /** ! * @author Laurent Etiemble ! * @version $Revision$ ! */ ! public class ResourceIndexer extends DefaultObjectIndexer ! { ! /** ! * Description of the Method ! * ! * @param key Description of the Parameter ! * @param value Description of the Parameter ! * @return Description of the Return Value ! */ ! public Object put(Object key, Object value) ! { ! if (key instanceof ManagedObject) ! { ! return super.put(((ManagedObject) key).getCanonicalName(), value); ! } ! return super.put(key, value); ! } ! ! ! /** ! * Description of the Method ! * ! * @param key Description of the Parameter ! * @return Description of the Return Value ! */ ! public Object remove(Object key) ! { ! if (key instanceof ManagedObject) ! { ! return super.remove(((ManagedObject) key).getCanonicalName()); ! } ! return super.remove(key); ! } ! } Index: ResourceRenderer.java =================================================================== RCS file: /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/frame/ResourceRenderer.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ResourceRenderer.java 27 Nov 2003 01:39:47 -0000 1.5 --- ResourceRenderer.java 13 Dec 2003 22:31:56 -0000 1.6 *************** *** 1,95 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.management.browser.frame; ! ! import java.awt.Image; ! import java.io.IOException; ! import java.io.InputStream; ! import java.util.Hashtable; ! import java.util.Iterator; ! import java.util.Properties; ! ! import javax.swing.Icon; ! import javax.swing.ImageIcon; ! ! import org.apache.log4j.Logger; ! import org.ejtools.adwt.util.DefaultObjectRenderer; ! import org.ejtools.management.browser.model.ManagedObject; ! ! /** ! * @author Laurent Etiemble ! * @version $Revision$ ! */ ! public class ResourceRenderer extends DefaultObjectRenderer ! { ! /** Description of the Field */ ! private static Hashtable icons = new Hashtable(); ! /** Description of the Field */ ! private static Logger logger = Logger.getLogger(ResourceRenderer.class); ! ! ! /** ! * Gets the icon attribute of the ResourceRenderer object ! * ! * @param o Description of the Parameter ! * @return The icon value ! */ ! public Icon getIcon(Object o) ! { ! if (o instanceof ManagedObject) ! { ! ManagedObject resource = (ManagedObject) o; ! String type = resource.getJ2EEType(); ! Icon icon = (Icon) icons.get(type); ! if (icon == null) ! { ! if (type.endsWith("Module")) ! { ! icon = (Icon) icons.get("J2EEModule"); ! } ! else ! { ! icon = (Icon) icons.get("J2EEDeployedObject"); ! } ! } ! return icon; ! } ! ! return super.getIcon(o); ! } ! ! /** Static block to load the icons */ ! static ! { ! try ! { ! InputStream in = ResourceRenderer.class.getResourceAsStream("/org/ejtools/management/browser/Icons.properties"); ! Properties props = new Properties(); ! props.load(in); ! in.close(); ! ! for (Iterator iterator = props.keySet().iterator(); iterator.hasNext(); ) ! { ! String type = (String) iterator.next(); ! String resource = props.getProperty(type); ! Image image = loadImage(resource); ! if (image != null) ! { ! icons.put(type, new ImageIcon(image)); ! } ! } ! } ! catch (IOException ioe) ! { ! logger.error("Error while loading Icons.properties", ioe); ! } ! catch (Exception e) ! { ! logger.error("Error while loading Icons.properties", e); ! } ! } ! } --- 1,95 ---- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.management.browser.frame; ! ! import java.awt.Image; ! import java.io.IOException; ! import java.io.InputStream; ! import java.util.Hashtable; ! import java.util.Iterator; ! import java.util.Properties; ! ! import javax.swing.Icon; ! import javax.swing.ImageIcon; ! ! import org.apache.log4j.Logger; ! import org.ejtools.adwt.util.DefaultObjectRenderer; ! import org.ejtools.management.browser.model.ManagedObject; ! ! /** ! * @author Laurent Etiemble ! * @version $Revision$ ! */ ! public class ResourceRenderer extends DefaultObjectRenderer ! { ! /** Description of the Field */ ! private static Hashtable icons = new Hashtable(); ! /** Description of the Field */ ! private static Logger logger = Logger.getLogger(ResourceRenderer.class); ! ! ! /** ! * Gets the icon attribute of the ResourceRenderer object ! * ! * @param o Description of the Parameter ! * @return The icon value ! */ ! public Icon getIcon(Object o) ! { ! if (o instanceof ManagedObject) ! { ! ManagedObject resource = (ManagedObject) o; ! String type = resource.getJ2EEType(); ! Icon icon = (Icon) icons.get(type); ! if (icon == null) ! { ! if (type.endsWith("Module")) ! { ! icon = (Icon) icons.get("J2EEModule"); ! } ! else ! { ! icon = (Icon) icons.get("J2EEDeployedObject"); ! } ! } ! return icon; ! } ! ! return super.getIcon(o); ! } ! ! /** Static block to load the icons */ ! static ! { ! try ! { ! InputStream in = ResourceRenderer.class.getResourceAsStream("/org/ejtools/management/browser/Icons.properties"); ! Properties props = new Properties(); ! props.load(in); ! in.close(); ! ! for (Iterator iterator = props.keySet().iterator(); iterator.hasNext(); ) ! { ! String type = (String) iterator.next(); ! String resource = props.getProperty(type); ! Image image = loadImage(resource); ! if (image != null) ! { ! icons.put(type, new ImageIcon(image)); ! } ! } ! } ! catch (IOException ioe) ! { ! logger.error("Error while loading Icons.properties", ioe); ! } ! catch (Exception e) ! { ! logger.error("Error while loading Icons.properties", e); ! } ! } ! } Index: ServerInternalFrame.java =================================================================== RCS file: /cvsroot/ejtools/applications/management.browser/src/main/org/ejtools/management/browser/frame/ServerInternalFrame.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ServerInternalFrame.java 27 Nov 2003 01:39:47 -0000 1.3 --- ServerInternalFrame.java 13 Dec 2003 22:31:56 -0000 1.4 *************** *** 1,215 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.management.browser.frame; ! ! import java.awt.BorderLayout; ! import java.beans.PropertyChangeEvent; ! import java.util.ResourceBundle; ! ! import javax.swing.JMenuBar; ! ! import org.apache.log4j.Logger; ! import org.ejtools.adwt.BeanContextTreePanel; ! import org.ejtools.adwt.action.Command; ! import org.ejtools.adwt.action.action.RefreshAction; ! import org.ejtools.adwt.service.BeanContextInternalFrame; ! import org.ejtools.adwt.service.MenuBarServiceProvider; ! import org.ejtools.adwt.service.ToolBarServiceProvider; ! import org.ejtools.management.browser.action.ShowNotificationsAction; ! import org.ejtools.management.browser.model.ManagedObject; ! import org.ejtools.management.browser.model.Server; ! import org.ejtools.management.browser.model.service.CacheService; ! import org.ejtools.management.browser.model.service.CacheServiceProvider; ! import org.ejtools.management.browser.model.service.ConnectionServiceProvider; ! import org.ejtools.management.browser.model.service.NotificationServiceProvider; ! import org.ejtools.util.service.Profile; ! import org.ejtools.util.service.ProfileHolder; ! ! /** ! * Description of the Class ! * ! * @author Laurent Etiemble ! * @version $Revision$ ! */ ! public class ServerInternalFrame extends BeanContextInternalFrame implements ProfileHolder ! { ! /** Description of the Field */ ! protected CacheServiceProvider cacheProvider; ! /** Description of the Field */ ! protected ConnectionServiceProvider connectionProvider; ! /** Description of the Field */ ! protected MenuBarServiceProvider menubarProvider; ! /** Description of the Field */ ! protected NotificationsInternalFrame notificationFrame; ! /** Description of the Field */ ! protected NotificationServiceProvider notificationProvider; ! /** Description of the Field */ ! protected Profile profile = null; ! /** Description of the Field */ ! protected Server server = null; ! /** Description of the Field */ ! protected ToolBarServiceProvider toolbarProvider; ! /** Description of the Field */ ! private static Logger logger = Logger.getLogger(ServerInternalFrame.class); ! /** Description of the Field */ ! private static ResourceBundle resources = ResourceBundle.getBundle("org.ejtools.management.browser.Resources"); ! ! ! /** ! * Constructor for ServerInternalFrame. ! * ! * @param profile Description of the Parameter ! */ ! public ServerInternalFrame() ! { ! super(); ! } ! ! ! ! /** ! * Description of the Method ! * ! * @param objectName Description of the Parameter ! * @return Description of the Return Value ! */ ! public ManagedObject queryMBean(String objectName) ! { ! ManagedObject resource = (ManagedObject) this.cacheProvider.get(CacheService.RESOURCE_TYPE, objectName); ! try ! { ! if ((resource != null) && (resource.isRegistered())) ! { ! return resource; ! } ! } ! catch (Exception e) ! { ! logger.warn("Cannot find ObjectName " + objectName, e); ! } ! return null; ! } ! ! ! public void setProfile(Profile profile) ! { ! this.profile = profile; ! } ! ! ! /** ! * Sets the server attribute of the ServerInternalFrame object ! * ! * @param server The new server value ! */ ! public void setServer(Server server) ! { ! this.connectionProvider = new ConnectionServiceProvider(); ! this.cacheProvider = new CacheServiceProvider(); ! this.notificationProvider = new NotificationServiceProvider(); ! this.menubarProvider = new MenuBarServiceProvider(); ! this.toolbarProvider = new ToolBarServiceProvider(); ! ! this.server = new Server(); ! this.server.setProfile(profile); ! ! this.add(this.connectionProvider); ! this.add(this.cacheProvider); ! this.add(this.notificationProvider); ! this.add(this.menubarProvider); ! this.add(this.toolbarProvider); ! ! this.add(this.server); ! this.notificationFrame = new NotificationsInternalFrame(this.notificationProvider); ! ! this.server.addPropertyChangeListener("name", this); ! this.server.addPropertyChangeListener("name", this.notificationFrame); ! ! this.add(new RefreshAction( ! new Command() ! { ! public void execute() ! { ! ServerInternalFrame.this.server.refresh(); ! } ! })); ! ! this.add(new ShowNotificationsAction( ! new Command() ! { ! public void execute() ! { ! ServerInternalFrame.this.showNotificationFrame(); ! } ! })); ! ! BeanContextTreePanel panel = new BeanContextTreePanel(this.server); ! panel.setIndexer(new ResourceIndexer()); ! panel.setRenderer(new ResourceRenderer()); ! panel.selectRoot(); ! ! this.frame.setJMenuBar((JMenuBar) this.menubarProvider.getContainer()); ! this.frame.getContentPane().add(BorderLayout.NORTH, this.toolbarProvider.getContainer()); ! this.frame.getContentPane().add(BorderLayout.CENTER, panel); ! } ! ! ! /** ! * Gets the profile attribute of the ServerInternalFrame object ! * ! * @return The profile value ! */ ! public Profile getProfile() ! { ! return this.profile; ! } ! ! ! /** ! * @param event Description of the Parameter ! */ ! public void propertyChange(PropertyChangeEvent event) ! { ! if (event.getPropertyName().equals("name")) ! { ! String newName = (String) event.getNewValue(); ! this.setTitle(resources.getString("connection.text.prefix") + " : " + newName); ! } ! } ! ! ! /** Description of the Method */ ! protected void initializeBeanContextResources() ! { ! super.initializeBeanContextResources(); ! ! // Hack to update the window title ! this.server.setName(""); ! this.server.setName(resources.getString("connection.text.untitled")); ! } ! ! ! /** Description of the Method */ ! protected void releaseBeanContextResources() ! { ! this.notificationFrame.close(); ! this.server.clear(); ! super.releaseBeanContextResources(); ! } ! ! ! /** Description of the Method */ ! protected void showNotificationFrame() ! { ! NotificationsInternalFrame frame = ServerInternalFrame.this.notificationFrame; ! if (!this.getBeanContext().contains(frame)) ! { ! this.getBeanContext().add(frame); ! } ! frame.activate(); ! } ! } --- 1,215 ---- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.management.browser.frame; ! ! import java.awt.BorderLayout; ! import java.beans.PropertyChangeEvent; ! import java.util.ResourceBundle; ! ! import javax.swing.JMenuBar; ! ! import org.apache.log4j.Logger; ! import org.ejtools.adwt.BeanContextTreePanel; ! import org.ejtools.adwt.action.Command; ! import org.ejtools.adwt.action.action.RefreshAction; ! import org.ejtools.adwt.service.BeanContextInternalFrame; ! import org.ejtools.adwt.service.MenuBarServiceProvider; ! import org.ejtools.adwt.service.ToolBarServiceProvider; ! import org.ejtools.management.browser.action.ShowNotificationsAction; ! import org.ejtools.management.browser.model.ManagedObject; ! import org.ejtools.management.browser.model.Server; ! import org.ejtools.management.browser.model.service.CacheService; ! import org.ejtools.management.browser.model.service.CacheServiceProvider; ! import org.ejtools.management.browser.model.service.ConnectionServiceProvider; ! import org.ejtools.management.browser.model.service.NotificationServiceProvider; ! import org.ejtools.util.service.Profile; ! import org.ejtools.util.service.ProfileHolder; ! ! /** ! * Description of the Class ! * ! * @author Laurent Etiemble ! * @version $Revision$ ! */ ! public class ServerInternalFrame extends BeanContextInternalFrame implements ProfileHolder ! { ! /** Description of the Field */ ! protected CacheServiceProvider cacheProvider; ! /** Description of the Field */ ! protected ConnectionServiceProvider connectionProvider; ! /** Description of the Field */ ! protected MenuBarServiceProvider menubarProvider; ! /** Description of the Field */ ! protected NotificationsInternalFrame notificationFrame; ! /** Description of the Field */ ! protected NotificationServiceProvider notificationProvider; ! /** Description of the Field */ ! protected Profile profile = null; ! /** Description of the Field */ ! protected Server server = null; ! /** Description of the Field */ ! protected ToolBarServiceProvider toolbarProvider; ! /** Description of the Field */ ! private static Logger logger = Logger.getLogger(ServerInternalFrame.class); ! /** Description of the Field */ ! private static ResourceBundle resources = ResourceBundle.getBundle("org.ejtools.management.browser.Resources"); ! ! ! /** ! * Constructor for ServerInternalFrame. ! * ! * @param profile Description of the Parameter ! */ ! public ServerInternalFrame() ! { ! super(); ! } ! ! ! ! /** ! * Description of the Method ! * ! * @param objectName Description of the Parameter ! * @return Description of the Return Value ! */ ! public ManagedObject queryMBean(String objectName) ! { ! ManagedObject resource = (ManagedObject) this.cacheProvider.get(CacheService.RESOURCE_TYPE, objectName); ! try ! { ! if ((resource != null) && (resource.isRegistered())) ! { ! return resource; ! } ! } ! catch (Exception e) ! { ! logger.warn("Cannot find ObjectName " + objectName, e); ! } ! return null; ! } ! ! ! public void setProfile(Profile profile) ! { ! this.profile = profile; ! } ! ! ! /** ! * Sets the server attribute of the ServerInternalFrame object ! * ! * @param server The new server value ! */ ! public void setServer(Server server) ! { ! this.connectionProvider = new ConnectionServiceProvider(); ! this.cacheProvider = new CacheServiceProvider(); ! this.notificationProvider = new NotificationServiceProvider(); ! this.menubarProvider = new MenuBarServiceProvider(); ! this.toolbarProvider = new ToolBarServiceProvider(); ! ! this.server = new Server(); ! this.server.setProfile(profile); ! ! this.add(this.connectionProvider); ! this.add(this.cacheProvider); ! this.add(this.notificationProvider); ! this.add(this.menubarProvider); ! this.add(this.toolbarProvider); ! ! this.add(this.server); ! this.notificationFrame = new NotificationsInternalFrame(this.notificationProvider); ! ! this.server.addPropertyChangeListener("name", this); ! this.server.addPropertyChangeListener("name", this.notificationFrame); ! ! this.add(new RefreshAction( ! new Command() ! { ! public void execute() ! { ! ServerInternalFrame.this.server.refresh(); ! } ! })); ! ! this.add(new ShowNotificationsAction( ! new Command() ! { ! public void execute() ! { ! ServerInternalFrame.this.showNotificationFrame(); ! } ! })); ! ! BeanContextTreePanel panel = new BeanContextTreePanel(this.server); ! panel.setIndexer(new ResourceIndexer()); ! panel.setRenderer(new ResourceRenderer()); ! panel.selectRoot(); ! ! this.frame.setJMenuBar((JMenuBar) this.menubarProvider.getContainer()); ! this.frame.getContentPane().add(BorderLayout.NORTH, this.toolbarProvider.getContainer()); ! this.frame.getContentPane().add(BorderLayout.CENTER, panel); ! } ! ! ! /** ! * Gets the profile attribute of the ServerInternalFrame object ! * ! * @return The profile value ! */ ! public Profile getProfile() ! { ! return this.profile; ! } ! ! ! /** ! * @param event Description of the Parameter ! */ ! public void propertyChange(PropertyChangeEvent event) ! { ! if (event.getPropertyName().equals("name")) ! { ! String newName = (String) event.getNewValue(); ! this.setTitle(resources.getString("connection.text.prefix") + " : " + newName); ! } ! } ! ! ! /** Description of the Method */ ! protected void initializeBeanContextResources() ! { ! super.initializeBeanContextResources(); ! ! // Hack to update the window title ! this.server.setName(""); ! this.server.setName(resources.getString("connection.text.untitled")); ! } ! ! ! /** Description of the Method */ ! protected void releaseBeanContextResources() ! { ! this.notificationFrame.close(); ! this.server.clear(); ! super.releaseBeanContextResources(); ! } ! ! ! /** Description of the Method */ ! protected void showNotificationFrame() ! { ! NotificationsInternalFrame frame = ServerInternalFrame.this.notificationFrame; ! if (!this.getBeanContext().contains(frame)) ! { ! this.getBeanContext().add(frame); ! } ! frame.activate(); ! } ! } |