|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.parlor.client.TableConfigurator
public abstract class TableConfigurator
This should be implemented some user-interface element that allows the user to configure whichever TableConfig options are relevant.
| Field Summary | |
|---|---|
protected TableConfig |
_config
The config we're configurating. |
protected ParlorContext |
_ctx
Provides access to client services. |
protected GameConfigurator |
_gameConfigurator
The game configurator, which we may wish to reference. |
| Constructor Summary | |
|---|---|
TableConfigurator()
Create a TableConfigurator. |
|
| Method Summary | |
|---|---|
protected void |
createConfigInterface()
Create the config interface. |
protected TableConfig |
createTableConfig()
Create the table config object that will be used. |
protected void |
flushTableConfig()
Derived classes will want to override this method, flushing values from the user interface to the table config object. |
TableConfig |
getTableConfig()
Return the fully configured table config according to the currently configured user interface elements. |
void |
init(ParlorContext ctx,
GameConfigurator gameConfigurator)
Initialize the TableConfigurator. |
abstract boolean |
isEmpty()
If true, the TableConfigurator is empty, which doesn't mean that it will not return a TableConfig object (for it must), but rather that there are no user-editable options being presented in the config interface. |
void |
setTableConfig(TableConfig config)
Optionally, you can set a pre-configured TableConfig that will be used to initialize the display parameters (if possible). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ParlorContext _ctx
protected TableConfig _config
protected GameConfigurator _gameConfigurator
| Constructor Detail |
|---|
public TableConfigurator()
| Method Detail |
|---|
public void setTableConfig(TableConfig config)
public void init(ParlorContext ctx,
GameConfigurator gameConfigurator)
protected TableConfig createTableConfig()
protected void createConfigInterface()
public abstract boolean isEmpty()
public TableConfig getTableConfig()
protected void flushTableConfig()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||