Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Package Functions | Package Attributes | Private Member Functions
netscape.oji.ConsoleWindow Class Reference

List of all members.

Public Member Functions

void dumpThreads ()
void dumpThreads ()

Package Functions

 ConsoleWindow (String title)
 ConsoleWindow (String title)

Package Attributes

TextArea text

Private Member Functions

MenuItem newItem (String title, ActionListener listener)
MenuItem newItem (String title, ActionListener listener)

Detailed Description

Definition at line 56 of file MRJConsole.java.


Constructor & Destructor Documentation

netscape.oji.ConsoleWindow.ConsoleWindow ( String  title) [inline, package]

Definition at line 59 of file MRJConsole.java.

                                   {
              super("Java Console");
              
              addWindowListener(
                     new WindowAdapter() {
                            public void windowClosing(WindowEvent e) {
                                   hide();
                            }
                     });
              
              add(text = new TextArea());
              setSize(300, 200);

              ActionListener dumpThreadsListener =
                     new ActionListener() {
                            public void actionPerformed(ActionEvent e) {
                                   dumpThreads();
                            }
                     };

              // Create a console menu.
              MenuBar menuBar = new MenuBar();
              Menu consoleMenu = new Menu("Console");
              consoleMenu.add(newItem("Dump Threads", dumpThreadsListener));
              
              menuBar.add(consoleMenu);
              setMenuBar(menuBar);
       }

Here is the call graph for this function:

netscape.oji.ConsoleWindow.ConsoleWindow ( String  title) [inline, package]

Definition at line 60 of file MRJConsole.java.

                                   {
              super("Java Console");
              
              addWindowListener(
                     new WindowAdapter() {
                            public void windowClosing(WindowEvent e) {
                                   hide();
                            }
                     });
              
              add(text = new TextArea());
              setSize(300, 200);

              ActionListener dumpThreadsListener =
                     new ActionListener() {
                            public void actionPerformed(ActionEvent e) {
                                   dumpThreads();
                            }
                     };

              // Create a console menu.
              MenuBar menuBar = new MenuBar();
              Menu consoleMenu = new Menu("Console");
              consoleMenu.add(newItem("Dump Threads", dumpThreadsListener));
              
              menuBar.add(consoleMenu);
              setMenuBar(menuBar);
       }

Here is the call graph for this function:


Member Function Documentation

Definition at line 94 of file MRJConsole.java.

                                 {
              System.out.println("Dumping threads...");
       }

Here is the caller graph for this function:

Definition at line 95 of file MRJConsole.java.

                                 {
              System.out.println("Dumping threads...");
       }
MenuItem netscape.oji.ConsoleWindow.newItem ( String  title,
ActionListener  listener 
) [inline, private]

Definition at line 88 of file MRJConsole.java.

                                                                       {
              MenuItem item = new MenuItem(title);
              item.addActionListener(listener);
              return item;
       }

Here is the caller graph for this function:

MenuItem netscape.oji.ConsoleWindow.newItem ( String  title,
ActionListener  listener 
) [inline, private]

Definition at line 89 of file MRJConsole.java.

                                                                       {
              MenuItem item = new MenuItem(title);
              item.addActionListener(listener);
              return item;
       }

Member Data Documentation

TextArea netscape.oji.ConsoleWindow.text [package]

Definition at line 57 of file MRJConsole.java.


The documentation for this class was generated from the following files: