|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Handler
be.hogent.tarsos.util.JLabelHandler
public final class JLabelHandler
Utility class to handle logging with a JLabel (status bar)
| Nested Class Summary | |
|---|---|
static class |
JLabelHandler.JLabelFormatter
|
| Constructor Summary | |
|---|---|
JLabelHandler()
Include filtering mechanism as it is not included in the (lame) Abstract Handler class. |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
|
void |
publish(java.util.logging.LogRecord logRecord)
|
void |
setLevel(java.util.logging.Level newLevel)
Must capture level to use in our custom filter, because this is not done in the abstract class. |
static void |
setupLoggerHandler(javax.swing.JLabel jLabel)
|
| Methods inherited from class java.util.logging.Handler |
|---|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JLabelHandler()
| Method Detail |
|---|
public static void setupLoggerHandler(javax.swing.JLabel jLabel)
jLabel - Setup logging for this jLabel.public void publish(java.util.logging.LogRecord logRecord)
publish in class java.util.logging.Handlerpublic void close()
close in class java.util.logging.Handlerpublic void flush()
flush in class java.util.logging.Handlerpublic void setLevel(java.util.logging.Level newLevel)
setLevel in class java.util.logging.Handler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||