Added ability to update elements in a set.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@266 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-08-16 03:45:43 +00:00
parent 2179599bd6
commit 890bad996e
6 changed files with 270 additions and 80 deletions
@@ -1,5 +1,5 @@
//
// $Id: DObject.java,v 1.24 2001/08/16 03:31:08 mdb Exp $
// $Id: DObject.java,v 1.25 2001/08/16 03:45:43 mdb Exp $
package com.threerings.cocktail.cher.dobj;
@@ -434,6 +434,17 @@ public class DObject
_mgr.postEvent(event);
}
/**
* Calls by derived instances when a set updater method was called.
*/
protected void requestElementUpdate (String name, DSet.Element elem)
{
// generate an element updated event
DEvent event = new ElementUpdatedEvent(_oid, name, elem);
// and dispatch it to our dobjmgr
_mgr.postEvent(event);
}
/** Our object id. */
protected int _oid;