|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ryanm.logging.AbstractSink
public abstract class AbstractSink
Eases implementation of LogSinks by handling listener management, change notification, and preferences handling
| Constructor Summary | |
|---|---|
AbstractSink(java.lang.String title)
Constructs a new Sink with the specified title |
|
| Method Summary | |
|---|---|
void |
addSinkListener(SinkListener listener)
Adds a listener object to this sink. |
java.lang.String |
getTitle()
Gets a title for this sink |
protected void |
notifyListeners()
Method that should be called by subclasses when something changes |
void |
removeSinkListener(SinkListener listener)
Removes a listener object from this sink. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ryanm.logging.LogSink |
|---|
log |
| Methods inherited from interface com.ryanm.config.Configurable |
|---|
getConfigurator |
| Constructor Detail |
|---|
public AbstractSink(java.lang.String title)
title - The title for the new sink. Titles should be unique
among sinks| Method Detail |
|---|
public final java.lang.String getTitle()
LogSink
getTitle in interface LogSinkpublic void addSinkListener(SinkListener listener)
LogSink
addSinkListener in interface LogSinklistener - The listener to addpublic void removeSinkListener(SinkListener listener)
LogSink
removeSinkListener in interface LogSinklistener - The listener to removeprotected void notifyListeners()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||