|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ccg.swing.AbstractLogModel
com.ccg.swing.DefaultLogModel
public final class DefaultLogModel
A LogModel implementation not associated with the
current run-time.
This model is intended to be used in situations where you want
to adjust log/debug verbosity levels, but
NOT for the active running application. For example, suppose you
were creating a application that generated HTML applet stubs
dynamically. You might want to be able to specify the log/debug
levels the applet should run at via your application, but NOT
adjust the active log/debug levels of your active application. In
this type of situation, you will want to use this type of LogModel (the editting of non-active log/debug levels).
If you really want a log model that can be used to allow the
user to adjust the log/debug output verbosity on the fly of the
active application, you really want to use the LogModel provided by SystemLogModel.getInstance().
To see a working example of using the LogModel,
DefaultLogModel, SystemLogModel and LogEditor objects in
combination, take a look at LogTest.java.
SystemLogModel| Constructor Summary | |
|---|---|
DefaultLogModel()
|
|
| Method Summary | |
|---|---|
int |
getDebugLevel()
Get the current debug
level for debug messages. |
int |
getLogLevel()
Get the current log level for
logged messages. |
void |
setDebugLevel(int val)
Set the current debug
level for debug messages. |
void |
setLogLevel(int val)
Set the current log level for
logged messages. |
| Methods inherited from class com.ccg.swing.AbstractLogModel |
|---|
addChangeListener, fireChangeEvent, removeChangeListener, toString, validateDebugLevel, validateLogLevel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultLogModel()
| Method Detail |
|---|
public int getLogLevel()
LogModellog level for
logged messages.
LogModel.setLogLevel(int)public void setLogLevel(int val)
LogModellog level for
logged messages.
Note, if you attempt to set a invalid value, it will be silently ignored.
val - New int value to assign.LogModel.getLogLevel()public int getDebugLevel()
LogModeldebug
level for debug messages.
LogModel.setDebugLevel(int)public void setDebugLevel(int val)
LogModeldebug
level for debug messages.
Note, if you attempt to set a invalid value, it will be silently ignored.
val - New int value to assign.LogModel.getDebugLevel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||