|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ccg.swing.AbstractLogModel
public abstract class AbstractLogModel
A base implementation of the LogModel interface.
This class implements some of the basic functionality of the
LogModel interface. You don't use this class
directly, instead, you use one of its derived classes (such as
SystemLogModel or DefaultLogModel). Alternatively, you can use this as a base class
to create your own LogModel.
DefaultLogModel,
SystemLogModel| Constructor Summary | |
|---|---|
AbstractLogModel()
|
|
| Method Summary | |
|---|---|
void |
addChangeListener(ChangeListener cl)
Adds a ChangeListener to be notified when
the state changes. |
protected void |
fireChangeEvent()
Sends a "state change" event to registered listeners. |
void |
removeChangeListener(ChangeListener cl)
Removes a ChangeListener that was
previously registered. |
String |
toString()
Get string representation suitable for debug output. |
(package private) boolean |
validateDebugLevel(int ll)
Verify a debug verbosity level. |
(package private) boolean |
validateLogLevel(int ll)
Verify a log level. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.ccg.swing.LogModel |
|---|
getDebugLevel, getLogLevel, setDebugLevel, setLogLevel |
| Constructor Detail |
|---|
public AbstractLogModel()
| Method Detail |
|---|
public void addChangeListener(ChangeListener cl)
LogModelChangeListener to be notified when
the state changes.
addChangeListener in interface LogModelcl - The change listener to be added (must not be null).public void removeChangeListener(ChangeListener cl)
LogModelChangeListener that was
previously registered.
removeChangeListener in interface LogModelcl - The change listener to be removed (must not be null).protected void fireChangeEvent()
This method is intended to be used by derived classes when the internal state of the logging and/or debugging levels have changed. It will notify all of the registered listeners of the event.
boolean validateLogLevel(int ll)
ll - A "log level" that you would like to have verified.
public String toString()
Returns a string in the form "LogEditor(LL,DL)" where LL is the integer value of the log level and DL is the integer value of the debug level.
toString in class Objectboolean validateDebugLevel(int ll)
ll - A "debug level" that you would like to have verified.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||