Changed DSet.Element to DSet.Entry in preparation for the addition of

array element update support. (Arrays have elements, sets have entries.)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1133 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-03-18 23:21:26 +00:00
parent 76cff072be
commit 7ccb9594b9
18 changed files with 323 additions and 327 deletions
@@ -1,5 +1,5 @@
//
// $Id: OccupantList.java,v 1.4 2001/12/20 01:10:52 shaper Exp $
// $Id: OccupantList.java,v 1.5 2002/03/18 23:21:26 mdb Exp $
package com.threerings.micasa.client;
@@ -42,7 +42,7 @@ public class OccupantList
public void willEnterPlace (PlaceObject plobj)
{
// add all of the occupants of the place to our list
Iterator users = plobj.occupantInfo.elements();
Iterator users = plobj.occupantInfo.entries();
while (users.hasNext()) {
OccupantInfo info = (OccupantInfo)users.next();
_model.addElement(info.username);
@@ -1,5 +1,5 @@
//
// $Id: TableListView.java,v 1.3 2002/02/08 23:55:24 mdb Exp $
// $Id: TableListView.java,v 1.4 2002/03/18 23:21:26 mdb Exp $
package com.threerings.micasa.lobby.table;
@@ -132,7 +132,7 @@ public class TableListView
// iterate over the tables already active in this lobby and put
// them in their respective lists
TableLobbyObject tlobj = (TableLobbyObject)place;
Iterator iter = tlobj.tableSet.elements();
Iterator iter = tlobj.tableSet.entries();
while (iter.hasNext()) {
tableAdded((Table)iter.next());
}
@@ -1,5 +1,5 @@
//
// $Id: TableLobbyObject.java,v 1.3 2002/03/08 01:06:12 mdb Exp $
// $Id: TableLobbyObject.java,v 1.4 2002/03/18 23:21:26 mdb Exp $
package com.threerings.micasa.lobby.table;
@@ -42,39 +42,39 @@ public class TableLobbyObject
}
/**
* Requests that the specified element be added to the
* Requests that the specified entry be added to the
* <code>tableSet</code> set. The set will not change until the event is
* actually propagated through the system.
*/
public void addToTableSet (DSet.Element elem)
public void addToTableSet (DSet.Entry elem)
{
requestElementAdd(TABLE_SET, elem);
requestEntryAdd(TABLE_SET, elem);
}
/**
* Requests that the element matching the supplied key be removed from
* Requests that the entry matching the supplied key be removed from
* the <code>tableSet</code> set. The set will not change until the
* event is actually propagated through the system.
*/
public void removeFromTableSet (Object key)
{
requestElementRemove(TABLE_SET, key);
requestEntryRemove(TABLE_SET, key);
}
/**
* Requests that the specified element be updated in the
* Requests that the specified entry be updated in the
* <code>tableSet</code> set. The set will not change until the event is
* actually propagated through the system.
*/
public void updateTableSet (DSet.Element elem)
public void updateTableSet (DSet.Entry elem)
{
requestElementUpdate(TABLE_SET, elem);
requestEntryUpdate(TABLE_SET, elem);
}
/**
* Requests that the <code>tableSet</code> field be set to the
* specified value. Generally one only adds, updates and removes
* elements of a distributed set, but certain situations call for a
* entries of a distributed set, but certain situations call for a
* complete replacement of the set value. The local value will be
* updated immediately and an event will be propagated through the
* system to notify all listeners that the attribute did