From 263a36e23e068a77721fb71be02bf35a3574ecfe Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Thu, 10 Nov 2005 01:19:37 +0000 Subject: [PATCH] Allow a TableConfig to be set prior to initialization. The configurator will use that as its prototype, and attempt to configure the UI elements to display the values in that config. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3755 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../threerings/parlor/client/TableConfigurator.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/java/com/threerings/parlor/client/TableConfigurator.java b/src/java/com/threerings/parlor/client/TableConfigurator.java index 6ba904fb2..c1259d877 100644 --- a/src/java/com/threerings/parlor/client/TableConfigurator.java +++ b/src/java/com/threerings/parlor/client/TableConfigurator.java @@ -41,6 +41,18 @@ public abstract class TableConfigurator _config = createTableConfig(); } + /** + * Optionally, you can set a pre-configured TableConfig + * that will be used to initialize the display parameters (if possible). + * This should be called prior to init(). + */ + public void setTableConfig (TableConfig config) + { + if (config != null) { + _config = config; + } + } + /** * Initialize the TableConfigurator. *