SettedObject interface. We may just want to roll this into DObject.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3017 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -0,0 +1,45 @@
|
|||||||
|
//
|
||||||
|
// $Id: SettedObject.java,v 1.1 2004/06/03 16:34:07 ray Exp $
|
||||||
|
|
||||||
|
package com.threerings.presents.dobj;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allows manipulation of DSets in generic ways.
|
||||||
|
*/
|
||||||
|
public interface SettedObject
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Get the specified set.
|
||||||
|
*/
|
||||||
|
public DSet getSet (String name);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add the item to the set.
|
||||||
|
*/
|
||||||
|
public void addToSet (String setName, DSet.Entry entry);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update an item in the set.
|
||||||
|
*/
|
||||||
|
public void updateSet (String setName, DSet.Entry entry);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the item from set.
|
||||||
|
*/
|
||||||
|
public void removeFromSet (String setName, Comparable key);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* See {@link DObject#getOid}.
|
||||||
|
*/
|
||||||
|
public int getOid ();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* See {@link DObject#addListener}.
|
||||||
|
*/
|
||||||
|
public void addListener (ChangeListener listener);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* See {@link DObject#removeListener}.
|
||||||
|
*/
|
||||||
|
public void removeListener (ChangeListener listener);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user