Added ability to update individual elements of an array field. The objects

have helper functions named set<field>At() for such a purpose.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1134 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-03-19 01:10:03 +00:00
parent 7ccb9594b9
commit 59aeb61fe3
7 changed files with 378 additions and 25 deletions
@@ -1,5 +1,5 @@
//
// $Id: DObject.java,v 1.40 2002/03/18 23:21:26 mdb Exp $
// $Id: DObject.java,v 1.41 2002/03/19 01:10:02 mdb Exp $
package com.threerings.presents.dobj;
@@ -558,6 +558,16 @@ public class DObject
postEvent(new AttributeChangedEvent(_oid, name, value));
}
/**
* Called by derived instances when an element updater method was
* called.
*/
protected void requestElementUpdate (String name, Object value, int index)
{
// dispatch an attribute changed event
postEvent(new ElementUpdatedEvent(_oid, name, value, index));
}
/**
* Calls by derived instances when an oid adder method was called.
*/