Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
public interface ListEventPublisher
Method Summary | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
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 goalRequires that the specifiedEventList
be updated before the specifiedListEventListener
which depends on it. Dependencies are automatically managed by mostEventList
s, so this method shall only be used forEventList
s that have indirect dependencies.
public void clearRelatedListener(Object subject, Object relatedListener)
Detach the subject from its related listener.
public void clearRelatedSubject(Object listener)
Detach the listener from its related subject.
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 goalRemoves the specifiedEventList
as a dependency for the specifiedListEventListener
. ThisListEventListener
will continue to receiveListEvent
s, but there will be no dependency tracking when such events are fired.
public 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. This makes it possible for a single listener to have multiple subjects, typically using inner classes. For example, theListSelection
class uses a single listener for multiple subjects (selected and unselected), and uses this method to define that relationship.
public 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. This makes it possible to support multiple listeners in a single subject, typically using inner classes. For example, theCompositeList
class uses multiple listeners for a single subject, and uses this method to define that relationship.