org.peace_tools.generic
Interface LogListener
- All Superinterfaces:
- java.util.EventListener
- All Known Implementing Classes:
- LogPane, ProgrammerLogPane, UserLogPane
public interface LogListener
- extends java.util.EventListener
Interface for "Views" that are interested in receiving log changes.
This interface provides a mechanism for the Logging system to notify all
interested "View"s (Views as in the Model-View-Controller pattern) about
changes in logging information. Typically the view classes are child classes
of the LogPane class. Whenever new logs are cut, or if the log file name is
changed (by a view) then all views that implement this interface and register
themselves with the corresponding Log class will receive a call back
notification informing about change in the log information.
Method Summary |
void |
logChanged(boolean logsChanged,
boolean fileNameChanged,
boolean levelChanged)
This is the only call back method in this interface. |
logChanged
void logChanged(boolean logsChanged,
boolean fileNameChanged,
boolean levelChanged)
- This is the only call back method in this interface. This method is
invoked whenever the information associated with the log changes or
if the file name information changes.
- Parameters:
logsChanged
- This parameter is true if log entries were added
or removed from the logs. Typically this is the common scenario for
the call back to occur.fileNameChanged
- This parameter is true if the file name into
which logs are written was changed by the user (via some view).levelChanged
- This parameter is true if the current logging
level set for the log was changed by the user (via some view).