com.threerings.opengl.gui.config
Class UserInterfaceConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.config.ManagedConfig
          extended by com.threerings.config.ParameterizedConfig
              extended by com.threerings.opengl.gui.config.UserInterfaceConfig
All Implemented Interfaces:
ConfigUpdateListener<ManagedConfig>, Exportable, ResourceManager.ModificationObserver, Copyable, Cloneable

public class UserInterfaceConfig
extends ParameterizedConfig

Describes a user interface.


Nested Class Summary
static class UserInterfaceConfig.Derived
          A derived implementation.
static class UserInterfaceConfig.Implementation
          Contains the actual implementation of the interface.
static class UserInterfaceConfig.Original
          An original implementation.
 
Field Summary
protected  ConfigManager _configs
          The model's local config library.
 UserInterfaceConfig.Implementation implementation
          The actual interface implementation.
 
Fields inherited from class com.threerings.config.ParameterizedConfig
_args, _base, _derived, parameters
 
Fields inherited from class com.threerings.config.ManagedConfig
_cfgmgr, _listeners, _name, _updateConfigs, _updateResources
 
Constructor Summary
UserInterfaceConfig()
           
 
Method Summary
protected  void fireConfigUpdated()
          Fires a configuration updated event.
 Component getComponent(GlContext ctx, Scope scope, Component comp)
          Creates or updates a component for this configuration.
 ConfigManager getConfigManager()
          Returns a reference to the config manager to use when resolving references within this config.
 UserInterfaceConfig.Original getOriginal()
          Retrieves a reference to the underlying original implementation.
protected  void getUpdateReferences(ConfigReferenceSet refs)
          Collects all of the references within this config to configs that, when updated, should trigger a call to ManagedConfig.fireConfigUpdated().
 void init(ConfigManager cfgmgr)
          Initializes this config with a reference to the config manager that it should use to resolve references.
 boolean validateReferences(String where, PrintStream out)
          Validates the references in this config.
 
Methods inherited from class com.threerings.config.ParameterizedConfig
applyArguments, applyArguments, getBound, getInstance, getParameter, getParameter, getReference, maybeFireOnConfigManager, validateOuters, wasUpdated
 
Methods inherited from class com.threerings.config.ManagedConfig
addListener, addUpdateDependencies, clearUpdateDependencies, configUpdated, getInstance, getInstance, getInstance, getInstance, getName, getUpdateResources, removeListener, resourceModified, setName, updateFromSource
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

implementation

@Editable
public UserInterfaceConfig.Implementation implementation
The actual interface implementation.


_configs

protected ConfigManager _configs
The model's local config library.

Constructor Detail

UserInterfaceConfig

public UserInterfaceConfig()
Method Detail

getOriginal

public UserInterfaceConfig.Original getOriginal()
Retrieves a reference to the underlying original implementation.


getComponent

public Component getComponent(GlContext ctx,
                              Scope scope,
                              Component comp)
Creates or updates a component for this configuration.

Parameters:
scope - the component's expression scope.
comp - an existing component to reuse, if possible.
Returns:
either a reference to the existing component (if reused) a new component, or null if no component could be created.

init

public void init(ConfigManager cfgmgr)
Description copied from class: ManagedConfig
Initializes this config with a reference to the config manager that it should use to resolve references.

Overrides:
init in class ManagedConfig

getConfigManager

public ConfigManager getConfigManager()
Description copied from class: ManagedConfig
Returns a reference to the config manager to use when resolving references within this config.

Overrides:
getConfigManager in class ManagedConfig

validateReferences

public boolean validateReferences(String where,
                                  PrintStream out)
Description copied from class: ManagedConfig
Validates the references in this config.

Overrides:
validateReferences in class ParameterizedConfig
Returns:
true if the references are valid

fireConfigUpdated

protected void fireConfigUpdated()
Description copied from class: ManagedConfig
Fires a configuration updated event.

Overrides:
fireConfigUpdated in class ManagedConfig

getUpdateReferences

protected void getUpdateReferences(ConfigReferenceSet refs)
Description copied from class: ManagedConfig
Collects all of the references within this config to configs that, when updated, should trigger a call to ManagedConfig.fireConfigUpdated().

Overrides:
getUpdateReferences in class ManagedConfig