com.threerings.presents.peer.server
Class PeerNode.NodeObjectListener

java.lang.Object
  extended by com.threerings.presents.peer.server.PeerNode.NodeObjectListener
All Implemented Interfaces:
AttributeChangeListener, ChangeListener, SetListener<DSet.Entry>
Enclosing class:
PeerNode

protected class PeerNode.NodeObjectListener
extends Object
implements AttributeChangeListener, SetListener<DSet.Entry>

Listens to node object changes.


Constructor Summary
protected PeerNode.NodeObjectListener()
           
 
Method Summary
 void attributeChanged(AttributeChangedEvent event)
          Called when an attribute changed event has been dispatched on an object.
 void entryAdded(EntryAddedEvent<DSet.Entry> event)
          Called when an entry added event has been dispatched on an object.
 void entryRemoved(EntryRemovedEvent<DSet.Entry> event)
          Called when an entry removed event has been dispatched on an object.
 void entryUpdated(EntryUpdatedEvent<DSet.Entry> event)
          Called when an entry updated event has been dispatched on an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeerNode.NodeObjectListener

protected PeerNode.NodeObjectListener()
Method Detail

attributeChanged

public void attributeChanged(AttributeChangedEvent event)
Description copied from interface: AttributeChangeListener
Called when an attribute changed event has been dispatched on an object. This will be called after the event has been applied to the object. So fetching the attribute during this call will provide the new value for the attribute.

Specified by:
attributeChanged in interface AttributeChangeListener
Parameters:
event - The event that was dispatched on the object.

entryAdded

public void entryAdded(EntryAddedEvent<DSet.Entry> event)
Description copied from interface: SetListener
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.

Specified by:
entryAdded in interface SetListener<DSet.Entry>
Parameters:
event - The event that was dispatched on the object.

entryUpdated

public void entryUpdated(EntryUpdatedEvent<DSet.Entry> event)
Description copied from interface: SetListener
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.

Specified by:
entryUpdated in interface SetListener<DSet.Entry>
Parameters:
event - The event that was dispatched on the object.

entryRemoved

public void entryRemoved(EntryRemovedEvent<DSet.Entry> event)
Description copied from interface: SetListener
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.

Specified by:
entryRemoved in interface SetListener<DSet.Entry>
Parameters:
event - The event that was dispatched on the object.