Per Walter's suggestion: made all of the listener interfaces extend a base
listener interface so that an object that attempts to add itself as a listener to a distributed object is required to implement at least one of the listener interfaces. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@921 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: DObject.java,v 1.32 2002/02/02 09:42:36 mdb Exp $
|
||||
// $Id: DObject.java,v 1.33 2002/02/03 04:38:05 mdb Exp $
|
||||
|
||||
package com.threerings.presents.dobj;
|
||||
|
||||
@@ -157,7 +157,7 @@ public class DObject
|
||||
* @see SetListener
|
||||
* @see OidListListener
|
||||
*/
|
||||
public void addListener (Object listener)
|
||||
public void addListener (ChangeListener listener)
|
||||
{
|
||||
// only add the listener if they're not already there
|
||||
Object[] els = ListUtil.testAndAdd(_listeners, listener);
|
||||
@@ -172,7 +172,7 @@ public class DObject
|
||||
*
|
||||
* @param listener the listener to be removed.
|
||||
*/
|
||||
public void removeListener (Object listener)
|
||||
public void removeListener (ChangeListener listener)
|
||||
{
|
||||
ListUtil.clear(_listeners, listener);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user