Class LogPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Logger

public class LogPanel extends JPanel implements Logger
Class for displaying a status area (made up of a variable number of lines) and a log area.
Version:
$Revision: 12361 $
Author:
mhall (mhall{[at]}pentaho{[dot]}com)
See Also:
  • Constructor Details

    • LogPanel

      public LogPanel()
  • Method Details

    • clearStatus

      public void clearStatus()
      Clear the status area.
    • getStatusTable

      public JTable getStatusTable()
      The JTable used for the status messages (in case clients want to attach listeners etc.)
      Returns:
      the JTable used for the status messages.
    • logMessage

      public void logMessage(String message)
      Sends the supplied message to the log area. These message will typically have the current timestamp prepended, and be viewable as a history.
      Specified by:
      logMessage in interface Logger
      Parameters:
      message - the log message
    • statusMessage

      public void statusMessage(String message)
      Sends the supplied message to the status area. These messages are typically one-line status messages to inform the user of progress during processing (i.e. it doesn't matter if the user doesn't happen to look at each message). These messages have the following format: <Component name (needs to be unique)>|<Parameter string (optional)|
      Specified by:
      statusMessage in interface Logger
      Parameters:
      message - the status message.
    • setLoggingFontSize

      public void setLoggingFontSize(int size)
      Set the size of the font used in the log message area. <= 0 will use the default for JTextArea.
      Parameters:
      size - the size of the font to use in the log message area
    • main

      public static void main(String[] args)
      Main method to test this class.
      Parameters:
      args - any arguments (unused)