Initial checkin of the new base config object for run time configs.

Allows derived config objects to provide custom editing UI.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2976 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Eric Lundberg
2004-03-04 02:42:31 +00:00
parent df0cf0cf98
commit 97207fca74
2 changed files with 48 additions and 0 deletions
@@ -0,0 +1,24 @@
//
// $Id: ConfigObject.dobj,v 1.1 2004/03/04 02:42:31 eric Exp $
package com.threerings.admin.client;
import javax.swing.JPanel;
import com.threerings.presents.dobj.DObject;
import com.threerings.presents.util.PresentsContext;
/**
* Base class for runtime config distributed objects. Used to allow
* config objects to supply custom object editing UI.
*/
public class ConfigObject extends DObject
{
/**
* Returns a custom editor panel for the specified field.
*/
public JPanel getCustomEditor (PresentsContext ctx, String fieldName)
{
return null;
}
}
@@ -0,0 +1,24 @@
//
// $Id: ConfigObject.java,v 1.1 2004/03/04 02:42:31 eric Exp $
package com.threerings.admin.client;
import javax.swing.JPanel;
import com.threerings.presents.dobj.DObject;
import com.threerings.presents.util.PresentsContext;
/**
* Base class for runtime config distributed objects. Used to allow
* config objects to supply custom object editing UI.
*/
public class ConfigObject extends DObject
{
/**
* Returns a custom editor panel for the specified field.
*/
public JPanel getCustomEditor (PresentsContext ctx, String fieldName)
{
return null;
}
}