ca.odell.glazedlists.event

Interface ListEventPublisher

Known Implementing Classes:
GraphDependenciesListEventPublisher

public interface ListEventPublisher

Define a strategy for managing dependencies in the observer pattern.
Author:
Jesse Wilson

Method Summary

void
addDependency(EventList<E> dependency, ListEventListener<E> listener)
Deprecated. replaced with setRelatedSubject(Object,Object), which has different semantics and takes different arguments, but accomplishes the same goal
void
clearRelatedListener(Object subject, Object relatedListener)
Detach the subject from its related listener.
void
clearRelatedSubject(Object listener)
Detach the listener from its related subject.
void
removeDependency(EventList<E> dependency, ListEventListener<E> listener)
Deprecated. replaced with clearRelatedSubject(Object), which has different semantics and takes different arguments, but accomplishes the same goal
void
setRelatedListener(Object subject, Object relatedListener)
Attach the specified subject to the specified listener, so that the listener's dependencies are satisfied before the subject is notified.
void
setRelatedSubject(Object listener, Object relatedSubject)
Attach the specified listener to the specified subject, so that when dependencies are being prepared, notifying the listener will be considered equivalent to notifying the subject.

Method Details

addDependency

public void addDependency(EventList<E> dependency,
                          ListEventListener<E> listener)

Deprecated. replaced with setRelatedSubject(Object,Object), which has different semantics and takes different arguments, but accomplishes the same goal

Requires that the specified EventList be updated before the specified ListEventListener which depends on it. Dependencies are automatically managed by most EventLists, so this method shall only be used for EventLists that have indirect dependencies.

clearRelatedListener

public void clearRelatedListener(Object subject,
                                 Object relatedListener)
Detach the subject from its related listener.

clearRelatedSubject

public void clearRelatedSubject(Object listener)
Detach the listener from its related subject.

removeDependency

public void removeDependency(EventList<E> dependency,
                             ListEventListener<E> listener)

Deprecated. replaced with clearRelatedSubject(Object), which has different semantics and takes different arguments, but accomplishes the same goal

Removes the specified EventList as a dependency for the specified ListEventListener. This ListEventListener will continue to receive ListEvents, but there will be no dependency tracking when such events are fired.

setRelatedListener

public void setRelatedListener(Object subject,
                               Object relatedListener)

setRelatedSubject

public void setRelatedSubject(Object listener,
                              Object relatedSubject)

Glazed Lists, Copyright © 2003-2006 publicobject.com, O'Dell Engineering.
Documentation build by pbuilder at 2007-12-21 23:49