Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Package Attributes
netscape.console.ConsoleApplet Class Reference
Inheritance diagram for netscape.console.ConsoleApplet:
Inheritance graph
[legend]
Collaboration diagram for netscape.console.ConsoleApplet:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ConsoleApplet ()
void init ()
void destroy ()
void dumpThreads ()

Package Attributes

TextArea console

Detailed Description

Definition at line 56 of file ConsoleApplet.java.


Constructor & Destructor Documentation

Definition at line 59 of file ConsoleApplet.java.

                              {
              setLayout(new BorderLayout());     
              add(console = new TextArea(), BorderLayout.CENTER);

              Panel panel = new Panel();
              add(panel, BorderLayout.SOUTH);

              // clear console button.
              ActionListener clearConsoleListener = new ActionListener() {
                     public void actionPerformed(ActionEvent e) {
                            console.setText("");
                     }
              };

              Button clearConsole = new Button("Clear");
              clearConsole.addActionListener(clearConsoleListener);
              panel.add(clearConsole);

              // dump threads button.
              ActionListener dumpThreadsListener = new ActionListener() {
                     public void actionPerformed(ActionEvent e) {
                            dumpThreads();
                     }
              };

              Button dumpThreads = new Button("Dump Threads");
              dumpThreads.addActionListener(dumpThreadsListener);
              panel.add(dumpThreads);
       }

Here is the call graph for this function:


Member Function Documentation

Definition at line 93 of file ConsoleApplet.java.

                             {
              Console.dispose();
       }

Here is the call graph for this function:

Definition at line 97 of file ConsoleApplet.java.

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

Here is the caller graph for this function:

Definition at line 89 of file ConsoleApplet.java.

                          {
              Console.init(console);
       }

Here is the call graph for this function:


Member Data Documentation

Definition at line 57 of file ConsoleApplet.java.


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