|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.logging.Handler java.util.logging.StreamHandler jwo.utils.gui.GUIHandler
public class GUIHandler
Creates a frame containing logger output. This is updated dynamically whenever a call to a logger that has registered this handler is made.
Constructor Summary | |
---|---|
GUIHandler()
Creates a GUI in which logger output is placed. |
Method Summary | |
---|---|
void |
addStyle(String text,
Style style)
Adds a style that is triggered by the appearance of the given text. |
Style |
getDefaultStyle()
Reports the default style used for console output. |
JFrame |
getGUI()
Retrieves the GUI used to report logging output. |
void |
publish(LogRecord record)
Publishes a LogRecord to a GUI. |
Methods inherited from class java.util.logging.StreamHandler |
---|
close, flush, isLoggable, setEncoding, setOutputStream |
Methods inherited from class java.util.logging.Handler |
---|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GUIHandler()
Method Detail |
---|
public void addStyle(String text, Style style)
text
- Text to trigger style.style
- Style to be associated with any lines of output containing the text.public Style getDefaultStyle()
public void publish(LogRecord record)
publish
in class StreamHandler
record
- Description of the log event.public JFrame getGUI()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |