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:
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user