public class TextComponentWriter extends Handler
| Constructor and Description |
|---|
TextComponentWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
int |
getMaxLines() |
JTextComponent |
getOutput() |
boolean |
isLogIgnoredLoggers() |
protected static void |
limitOutputLines(int maxlines,
JTextComponent out) |
void |
publish(LogRecord record) |
void |
setFilter(Filter newFilter) |
void |
setFormatter(Formatter newFormatter) |
void |
setLevel(Level newLevel) |
void |
setLogIgnoredLoggers(boolean logIgnoredLoggers) |
void |
setMaxLines(int maxLines) |
void |
setOutput(JTextComponent output) |
protected static void |
writeMessage(JTextComponent out,
xyz.cofe.collection.Func0<Iterable<xyz.cofe.collection.Pair<String,AttributeSet>>> lazyMessage) |
protected static void |
writeMessage(JTextComponent out,
Iterable<xyz.cofe.collection.Pair<String,AttributeSet>> message) |
protected static void |
writeMessage(JTextComponent out,
String message) |
protected static void |
writeMessage(JTextComponent out,
String message,
AttributeSet textAttributes) |
protected static void |
writeMessage(JTextComponent out,
String message,
xyz.cofe.collection.Func0<AttributeSet> lazyTextAttributes) |
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManagerpublic JTextComponent getOutput()
public void setOutput(JTextComponent output)
public int getMaxLines()
public void setMaxLines(int maxLines)
public boolean isLogIgnoredLoggers()
public void setLogIgnoredLoggers(boolean logIgnoredLoggers)
public void setFilter(Filter newFilter) throws SecurityException
setFilter in class HandlerSecurityExceptionpublic void setFormatter(Formatter newFormatter) throws SecurityException
setFormatter in class HandlerSecurityExceptionpublic void setLevel(Level newLevel) throws SecurityException
setLevel in class HandlerSecurityExceptionprotected static void writeMessage(JTextComponent out, xyz.cofe.collection.Func0<Iterable<xyz.cofe.collection.Pair<String,AttributeSet>>> lazyMessage)
protected static void writeMessage(JTextComponent out, Iterable<xyz.cofe.collection.Pair<String,AttributeSet>> message)
protected static void writeMessage(JTextComponent out, String message, AttributeSet textAttributes)
protected static void writeMessage(JTextComponent out, String message, xyz.cofe.collection.Func0<AttributeSet> lazyTextAttributes)
protected static void writeMessage(JTextComponent out, String message)
protected static void limitOutputLines(int maxlines,
JTextComponent out)
public void close()
throws SecurityException
close in class HandlerSecurityExceptionCopyright © 2017. All rights reserved.