com.threerings.presents.dobj
Class NamedEvent
java.lang.Object
com.threerings.presents.dobj.DEvent
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).
|
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 |
_name
protected String _name
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.
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