FileDocCategorySizeDatePackage
SOAPMonitorApplet.javaAPI DocApache Axis 1.456776Sat Apr 22 18:56:52 BST 2006None

SOAPMonitorApplet

public class SOAPMonitorApplet extends JApplet
This is a SOAP Mointor Applet class. This class provides the user interface for displaying data from the SOAP monitor service.
author
Brian Price (pricebe@us.ibm.com)

Fields Summary
private JPanel
main_panel
Private data
private JTabbedPane
tabbed_pane
private int
port
private Vector
pages
Constructors Summary
public SOAPMonitorApplet()
Constructor


          
      
    
Methods Summary
private voidaddPage(SOAPMonitorApplet$SOAPMonitorPage pg)
Add a page to the notebook

        tabbed_pane.addTab("  "+pg.getHost()+"  ", pg);
        pages.addElement(pg);
    
public voiddestroy()
Applet cleanup

        tabbed_pane = null;
        main_panel = null;
    
public voidinit()
Applet initialization

        // Get the port to be used
        String port_str = getParameter("port");
        if (port_str != null) {
            port = Integer.parseInt(port_str);
        }
        // Try to use the system look and feel
        try {
           UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (Exception e){
        }
        // Create main panel to hold notebook
        main_panel = new JPanel();
        main_panel.setBackground(Color.white);
        main_panel.setLayout(new BorderLayout());
        setContentPane(main_panel);
        // Create the notebook
        tabbed_pane = new JTabbedPane(JTabbedPane.TOP);
        main_panel.add(tabbed_pane,BorderLayout.CENTER);
        // Add notebook page for default host connection
        pages = new Vector();
        addPage(new SOAPMonitorPage(getCodeBase().getHost()));
    
public voidstart()
Applet is being displayed

        // Tell all pages to start talking to the server
        Enumeration e = pages.elements();
        while (e.hasMoreElements()) {
            SOAPMonitorPage pg = (SOAPMonitorPage) e.nextElement();
            if (pg != null) {
                pg.start();
            }
        }
    
public voidstop()

        // Tell all pages to stop talking to the server
        Enumeration e = pages.elements();
        while (e.hasMoreElements()) {
            SOAPMonitorPage pg = (SOAPMonitorPage) e.nextElement();
            if (pg != null) {
                pg.stop();
            }
        }