Class LogDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class LogDialog extends JDialog
A dialog allowing to display log (with syntax highlighting).
Author:
Zleurtor
See Also:
  • Constructor Details

    • LogDialog

      public LogDialog(SlavesPanel slavesPanel, String newIp, String newName, BufferedReader logReader, org.apache.log4j.lf5.LogLevel logLevel)
      Creates a log dialog for the given slaves panel and displaying the log of the specified IP.
      Parameters:
      slavesPanel - The slaves panel for which this dialog is created.
      newIp - The IP of the slave of which the log is displayed.
      newName - The name of the slave of which the log is displayed.
      logReader - A input stream reader used to read the log content.
      logLevel - The level of the displayed log.
  • Method Details

    • addLine

      public final void addLine(String line, StyledDocument document) throws BadLocationException
      Add a new log line to the text pane.
      Parameters:
      line - The new log line to add to the text pane.
      document - The document the line shall be added to.
      Throws:
      BadLocationException - If the insert position is not a valid position within the document.