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, com.threerings.resource.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
 UserInterfaceConfig.Implementation implementation
          The actual interface implementation.
 
Fields inherited from class com.threerings.config.ParameterizedConfig
parameters
 
Constructor Summary
UserInterfaceConfig()
           
 
Method Summary
 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.
 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
getInstance, getParameter, getReference, validateOuters, wasUpdated
 
Methods inherited from class com.threerings.config.ManagedConfig
addListener, configUpdated, getInstance, getInstance, getInstance, getInstance, getName, 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
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

implementation

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

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


Copyright © 2011. All Rights Reserved.