The great invocation services rethink of 2002! Rearchitected the remote
method invocation services and converted everything to the new style. Could this be my biggest checkin ever? git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1642 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ConfigEditorPanel.java,v 1.3 2002/07/09 21:13:20 ray Exp $
|
||||
// $Id: ConfigEditorPanel.java,v 1.4 2002/08/14 19:07:48 mdb Exp $
|
||||
|
||||
package com.threerings.admin.client;
|
||||
|
||||
@@ -20,6 +20,7 @@ import com.threerings.admin.Log;
|
||||
* displays their fields in a tree widget to be viewed and edited.
|
||||
*/
|
||||
public class ConfigEditorPanel extends JTabbedPane
|
||||
implements AdminService.ConfigInfoListener
|
||||
{
|
||||
/**
|
||||
* Constructs an editor panel which will use the supplied context to
|
||||
@@ -39,8 +40,11 @@ public class ConfigEditorPanel extends JTabbedPane
|
||||
// if we have no children, ship off a getConfigInfo request to
|
||||
// find out what config objects are available for editing
|
||||
if (getComponentCount() == 0) {
|
||||
// locate our admin service and use it to make a request
|
||||
AdminService service = (AdminService)
|
||||
_ctx.getClient().requireService(AdminService.class);
|
||||
Log.info("Sending get config info.");
|
||||
AdminService.getConfigInfo(_ctx.getClient(), this);
|
||||
service.getConfigInfo(_ctx.getClient(), this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,7 +52,7 @@ public class ConfigEditorPanel extends JTabbedPane
|
||||
* Called in response to our getConfigInfo server-side service
|
||||
* request.
|
||||
*/
|
||||
public void handleConfigInfo (int invid, String[] keys, int[] oids)
|
||||
public void gotConfigInfo (String[] keys, int[] oids)
|
||||
{
|
||||
Log.info("Got config info: " + StringUtil.toString(keys));
|
||||
// create object editor panels for each of the categories
|
||||
@@ -60,6 +64,12 @@ public class ConfigEditorPanel extends JTabbedPane
|
||||
}
|
||||
}
|
||||
|
||||
// documentation inherited from interface
|
||||
public void requestFailed (String reason)
|
||||
{
|
||||
Log.warning("Failed to get config info [reason=" + reason + "].");
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when the panel is hidden; this instructs all of our object
|
||||
* editors to clear out their subscriptions.
|
||||
|
||||
Reference in New Issue
Block a user