From 97207fca741f5f2a94b622e6bc94b93f098ad005 Mon Sep 17 00:00:00 2001 From: Eric Lundberg Date: Thu, 4 Mar 2004 02:42:31 +0000 Subject: [PATCH] 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 --- .../threerings/admin/data/ConfigObject.dobj | 24 +++++++++++++++++++ .../threerings/admin/data/ConfigObject.java | 24 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 src/java/com/threerings/admin/data/ConfigObject.dobj create mode 100644 src/java/com/threerings/admin/data/ConfigObject.java diff --git a/src/java/com/threerings/admin/data/ConfigObject.dobj b/src/java/com/threerings/admin/data/ConfigObject.dobj new file mode 100644 index 000000000..ce3a52e97 --- /dev/null +++ b/src/java/com/threerings/admin/data/ConfigObject.dobj @@ -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; + } +} diff --git a/src/java/com/threerings/admin/data/ConfigObject.java b/src/java/com/threerings/admin/data/ConfigObject.java new file mode 100644 index 000000000..10406535d --- /dev/null +++ b/src/java/com/threerings/admin/data/ConfigObject.java @@ -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; + } +}