Files
narya/src/java/com/threerings/admin/data/ConfigObject.java
T
Michael Bayne 1a4bdbc5c2 Distributed objects go in the data package, not client. While I was in
here, I went ahead and cleaned up the custom field editor handling per
Ray's earlier suggestion.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2981 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-06 12:00:39 +00:00

28 lines
685 B
Java

//
// $Id: ConfigObject.java,v 1.2 2004/03/06 12:00:39 mdb Exp $
package com.threerings.admin.data;
import java.lang.reflect.Field;
import javax.swing.JPanel;
import com.threerings.presents.dobj.DObject;
import com.threerings.presents.util.PresentsContext;
import com.threerings.admin.client.FieldEditor;
/**
* Base class for runtime config distributed objects. Used to allow
* config objects to supply custom object editing UI.
*/
public class ConfigObject extends DObject
{
/**
* Returns the editor panel for the specified field.
*/
public JPanel getEditor (PresentsContext ctx, Field field)
{
return new FieldEditor(ctx, field, this);
}
}