|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.presents.dobj.DEvent
com.threerings.presents.dobj.InvocationNotificationEvent
public class InvocationNotificationEvent
Used to dispatch an invocation notification from the server to a client.
DObjectManager.postEvent(com.threerings.presents.dobj.DEvent)| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
|---|
Streamable.Closure |
| Field Summary | |
|---|---|
protected Object[] |
_args
The arguments to the receiver method being invoked. |
protected byte |
_methodId
The id of the receiver method being invoked. |
protected short |
_receiverId
Identifies the receiver to which this notification is being dispatched. |
| Fields inherited from class com.threerings.presents.dobj.DEvent |
|---|
_actualTransport, _soid, _toid, _transport, eventId, UNSET_OLD_ENTRY, UNSET_OLD_VALUE |
| Constructor Summary | |
|---|---|
InvocationNotificationEvent(int targetOid,
short receiverId,
int methodId,
Object[] args)
Constructs a new invocation notification event on the specified target object with the supplied receiver id, method id and arguments. |
|
| Method Summary | |
|---|---|
boolean |
applyToObject(DObject target)
Applies the attribute modifications represented by this event to the specified target object. |
Object[] |
getArgs()
Returns the arguments associated with this notification. |
int |
getMethodId()
Returns the id of the method associated with this notification. |
int |
getReceiverId()
Returns the receiver id associated with this notification. |
protected void |
notifyListener(Object listener)
Events with associated listener interfaces should implement this function and notify the supplied listener if it implements their event listening interface. |
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, getActualTransport, getSourceOid, getTargetOid, getTransport, isPrivate, noteActualTransport, setSourceOid, setTargetOid, setTransport, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected short _receiverId
protected byte _methodId
protected Object[] _args
| Constructor Detail |
|---|
public InvocationNotificationEvent(int targetOid,
short receiverId,
int methodId,
Object[] args)
targetOid - the object id of the object on which the event is to be dispatched.receiverId - identifies the receiver to which this notification is being dispatched.methodId - the id of the method to be invoked.args - the arguments for the method. This array should contain only values of valid
distributed object types.| Method Detail |
|---|
public int getReceiverId()
public int getMethodId()
public Object[] getArgs()
public boolean applyToObject(DObject target)
throws ObjectAccessException
DEvent
applyToObject in class DEventObjectAccessException - thrown if there is any problem applying the event to the
object (invalid attribute, etc.).protected void notifyListener(Object listener)
DEventAttributeChangedEvent will notify listeners that implement AttributeChangeListener.
notifyListener in class DEventprotected void toString(StringBuilder buf)
DEventsuper.toString()) to append the derived class specific event information to the
string buffer.
toString in class DEvent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||