ca.odell.glazedlists.event

Interface SequenceDependenciesEventPublisher.EventFormat<Subject,Listener,Event>

public static interface SequenceDependenciesEventPublisher.EventFormat<Subject,Listener,Event>

Adapt any observer-style interface to a common format.

Method Summary

void
fire(Subject subject, Event event, Listener listener)
Fire the specified event to the specified listener.
boolean
isStale(Subject subject, Listener listener)
Whether the listener is still valid.
void
postEvent(Subject subject)
A callback made only after all listeners of the specified subject have been notified of the specified event.

Method Details

fire

public void fire(Subject subject,
                 Event event,
                 Listener listener)
Fire the specified event to the specified listener.

isStale

public boolean isStale(Subject subject,
                       Listener listener)
Whether the listener is still valid. Usually a listener becomes stale when a weak reference goes out of scope. If this method returns true, the listener will be silently removed and no longer receive events.

postEvent

public void postEvent(Subject subject)
A callback made only after all listeners of the specified subject have been notified of the specified event. This can be used as a hook to clean up temporary datastructures for that event.

Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by pbuilder at 2009-07-14 22:05