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
This commit is contained in:
@@ -41,6 +41,18 @@ public abstract class TableConfigurator
|
|||||||
_config = createTableConfig();
|
_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.
|
* Initialize the TableConfigurator.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user