com.threerings.presents.dobj
Interface SetListener<T extends DSet.Entry>

Type Parameters:
T - the type of entry being handled by this listener. This must match the type on the set that generates the events.
All Superinterfaces:
ChangeListener
All Known Implementing Classes:
ConfigRegistry.ObjectRecord, DatabaseConfigRegistry.DatabaseObjectRecord, DSetEditor.DObjectAccessor, DynamicListener, NamedSetAdapter, OccupantDirector, PeeredDatabaseConfigRegistry.PeerDatabaseObjectRecord, PeerNode.NodeObjectListener, PrefsConfigRegistry.PrefsObjectRecord, SetAdapter, TabbedDSetEditor

public interface SetListener<T extends DSet.Entry>
extends ChangeListener

Implemented by entities which wish to hear about changes that occur to set attributes of a particular distributed object.

NOTE: This listener will receive all Entry events from a DObject it's listening to, so it should check that the event's name matches the field it's interested in before acting on the event.

See Also:
DObject.addListener(com.threerings.presents.dobj.ChangeListener)

Method Summary
 void entryAdded(EntryAddedEvent<T> event)
          Called when an entry added event has been dispatched on an object.
 void entryRemoved(EntryRemovedEvent<T> event)
          Called when an entry removed event has been dispatched on an object.
 void entryUpdated(EntryUpdatedEvent<T> event)
          Called when an entry updated event has been dispatched on an object.
 

Method Detail

entryAdded

void entryAdded(EntryAddedEvent<T> event)
Called when an entry added event has been dispatched on an object. This will be called after the event has been applied to the object.

Parameters:
event - The event that was dispatched on the object.

entryUpdated

void entryUpdated(EntryUpdatedEvent<T> event)
Called when an entry updated event has been dispatched on an object. This will be called after the event has been applied to the object.

Parameters:
event - The event that was dispatched on the object.

entryRemoved

void entryRemoved(EntryRemovedEvent<T> event)
Called when an entry removed event has been dispatched on an object. This will be called after the event has been applied to the object.

Parameters:
event - The event that was dispatched on the object.