com.threerings.presents.dobj
Class NamedEvent

java.lang.Object
  extended by com.threerings.presents.dobj.DEvent
      extended by com.threerings.presents.dobj.NamedEvent
All Implemented Interfaces:
Streamable
Direct Known Subclasses:
AttributeChangedEvent, ElementUpdatedEvent, EntryEvent, MessageEvent, ObjectAddedEvent, ObjectRemovedEvent, ReleaseLockEvent

public abstract class NamedEvent
extends DEvent

A common parent class for all events that are associated with a name (in some cases a field name, in other cases just an identifying name).


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
protected  String _name
           
 
Fields inherited from class com.threerings.presents.dobj.DEvent
_actualTransport, _soid, _toid, _transport, eventId, UNSET_OLD_ENTRY, UNSET_OLD_VALUE
 
Constructor Summary
NamedEvent(int targetOid, String name)
          Constructs a new named event for the specified target object with the supplied attribute name.
 
Method Summary
 String getName()
          Returns the name of the attribute to which this event pertains.
protected  void toString(StringBuilder buf)
          This should be overridden by derived classes (which should be sure to call super.toString()) to append the derived class specific event information to the string buffer.
 
Methods inherited from class com.threerings.presents.dobj.DEvent
alreadyApplied, applyToObject, getActualTransport, getSourceOid, getTargetOid, getTransport, isPrivate, noteActualTransport, notifyListener, setSourceOid, setTargetOid, setTransport, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_name

protected String _name
Constructor Detail

NamedEvent

public NamedEvent(int targetOid,
                  String name)
Constructs a new named event for the specified target object with the supplied attribute name.

Parameters:
targetOid - the object id of the object in question.
name - the name associated with this event.
Method Detail

getName

public String getName()
Returns the name of the attribute to which this event pertains.


toString

protected void toString(StringBuilder buf)
Description copied from class: DEvent
This should be overridden by derived classes (which should be sure to call super.toString()) to append the derived class specific event information to the string buffer.

Overrides:
toString in class DEvent