|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.util.logging.AbstractLogWriter<String>
com.antelmann.util.logging.JTextComponentLog
public class JTextComponentLog
JTextComponentLog writes abbreviated log messages into a given JTextComponent synchronously. Uses StringLineFormatter.
StringLineFormatter,
LogException,
Logger,
LogEntry| Field Summary |
|---|
| Fields inherited from class com.antelmann.util.logging.AbstractLogWriter |
|---|
filter |
| Constructor Summary | |
|---|---|
JTextComponentLog()
uses a standard JTextArea |
|
JTextComponentLog(JTextComponent jtc)
|
|
| Method Summary | |
|---|---|
JTextComponent |
getComponent()
|
int |
getLimit()
|
void |
purge()
purges the log buffer |
void |
setLimit(int limit)
set limit to 0 or less for no limit |
void |
setLogFormatter(LogEntryFormatter<String> formatter)
formatter must not be null |
void |
writeLogPattern(String pattern)
This method appends a short version of the entry to internal buffer that is written to the embedded text component. |
| Methods inherited from class com.antelmann.util.logging.AbstractLogWriter |
|---|
accept, getLogFilter, getLogFormatter, setLogFilter, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JTextComponentLog()
public JTextComponentLog(JTextComponent jtc)
| Method Detail |
|---|
public JTextComponent getComponent()
public void purge()
public void setLimit(int limit)
public int getLimit()
public void setLogFormatter(LogEntryFormatter<String> formatter)
AbstractLogWriter
setLogFormatter in class AbstractLogWriter<String>public void writeLogPattern(String pattern)
writeLogPattern in class AbstractLogWriter<String>
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||