info.jonclark.gui
Class GuiLogHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by info.jonclark.gui.GuiLogHandler

public class GuiLogHandler
extends Handler

Directs Logger messages to model GUI dialog boxes.

Author:
Jonathan Clark

Constructor Summary
GuiLogHandler(Component parent, String title)
          Create a new GuiLogHandler object.
 
Method Summary
 void close()
           
 void flush()
           
 void publish(LogRecord record)
           
 
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiLogHandler

public GuiLogHandler(Component parent,
                     String title)
Create a new GuiLogHandler object. The average user will want to set the level of this handler to Level.WARNING so that the user doesn't have to deal with too many informational messages.

Parameters:
parent - The parent component that will be used for displaying model error dialogs.
Method Detail

close

public void close()
           throws SecurityException
Specified by:
close in class Handler
Throws:
SecurityException

flush

public void flush()
Specified by:
flush in class Handler

publish

public void publish(LogRecord record)
Specified by:
publish in class Handler