nz.ac.waikato.mcennis.rat.gui
Class ScreenHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by nz.ac.waikato.mcennis.rat.gui.ScreenHandler

public class ScreenHandler
extends java.util.logging.Handler

Logging handler for logging messages to a JTextArea object as if it were standard out.


Constructor Summary
ScreenHandler()
          Create a new handler with a default SimpleFormatter object
 
Method Summary
 void close()
           
 void flush()
           
 void publish(java.util.logging.LogRecord record)
           
 void setOutputScreen(javax.swing.JTextArea o)
          Link this object to a JTextArea
 
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenHandler

public ScreenHandler()
Create a new handler with a default SimpleFormatter object

Method Detail

publish

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

flush

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

close

public void close()
           throws java.lang.SecurityException
Specified by:
close in class java.util.logging.Handler
Throws:
java.lang.SecurityException

setOutputScreen

public void setOutputScreen(javax.swing.JTextArea o)
Link this object to a JTextArea

Parameters:
o - JTextArea object to log to

Get Relational Analysis Toolkit at SourceForge.net. Fast, secure and Free Open Source software downloads