net.sourceforge.nite.gui.util
Class MyLogHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by net.sourceforge.nite.gui.util.MyLogHandler

public class MyLogHandler
extends java.util.logging.Handler

Utility class for maintaining a status bar through the logging API. Allows visualisation of messages from loggers; you can use this in one of several ways:

Author:
Dennis Reidsma, UTwente

Constructor Summary
MyLogHandler()
           
 
Method Summary
 void close()
           
 javax.swing.JInternalFrame createStatusFrame(javax.swing.JDesktopPane desktop, int x, int y, int width, int height)
           
 void flush()
           
 javax.swing.JInternalFrame getInternalFrame()
           
 javax.swing.JComponent getPanel()
           
 void publish(java.util.logging.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

MyLogHandler

public MyLogHandler()
Method Detail

getPanel

public javax.swing.JComponent getPanel()

getInternalFrame

public javax.swing.JInternalFrame getInternalFrame()

createStatusFrame

public javax.swing.JInternalFrame createStatusFrame(javax.swing.JDesktopPane desktop,
                                                    int x,
                                                    int y,
                                                    int width,
                                                    int height)

close

public void close()
Specified by:
close in class java.util.logging.Handler

flush

public void flush()
Specified by:
flush in class java.util.logging.Handler

publish

public void publish(java.util.logging.LogRecord record)
Specified by:
publish in class java.util.logging.Handler