FileDocCategorySizeDatePackage
TestEventSource.javaAPI DocExample565Mon Jan 09 11:02:02 GMT 2006None

TestEventSource.java

public abstract class TestEventSource {
    public abstract void addListener (TestEventListener l);
    public abstract void removeListener (TestEventListener l);
    public abstract void fireEvent (java.util.EventObject o);
    public void test() {
        addListener (new TestEventListener ("A"));
        addListener (new TestEventListener ("B"));
        addListener (new TestEventListener ("C"));
        addListener (new TestEventListener ("D"));
        addListener (new TestEventListener ("E"));
        fireEvent(new java.util.EventObject(this));
    }
}