com.threerings.opengl.gui.config
Class UserInterfaceConfig.Derived

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.gui.config.UserInterfaceConfig.Implementation
          extended by com.threerings.opengl.gui.config.UserInterfaceConfig.Derived
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
UserInterfaceConfig

public static class UserInterfaceConfig.Derived
extends UserInterfaceConfig.Implementation

A derived implementation.


Field Summary
 ConfigReference<UserInterfaceConfig> userInterface
          The interface reference.
 
Constructor Summary
UserInterfaceConfig.Derived()
           
 
Method Summary
 Component getComponent(GlContext ctx, Scope scope, Component comp)
          Creates or updates a component for this configuration.
 ConfigManager getConfigManager(ConfigManager cfgmgr)
          Returns a reference to the config manager to use when resolving references.
 UserInterfaceConfig.Original getOriginal(ConfigManager cfgmgr)
          Returns a reference to the config's underlying original implementation.
 void getUpdateReferences(ConfigReferenceSet refs)
          Adds the implementation's update references to the provided set.
 
Methods inherited from class com.threerings.opengl.gui.config.UserInterfaceConfig.Implementation
invalidate
 
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

userInterface

@Editable(nullable=true)
public ConfigReference<UserInterfaceConfig> userInterface
The interface reference.

Constructor Detail

UserInterfaceConfig.Derived

public UserInterfaceConfig.Derived()
Method Detail

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Description copied from class: UserInterfaceConfig.Implementation
Adds the implementation's update references to the provided set.

Overrides:
getUpdateReferences in class UserInterfaceConfig.Implementation

getConfigManager

public ConfigManager getConfigManager(ConfigManager cfgmgr)
Description copied from class: UserInterfaceConfig.Implementation
Returns a reference to the config manager to use when resolving references.

Specified by:
getConfigManager in class UserInterfaceConfig.Implementation
Parameters:
cfgmgr - the config manager of the config containing the implementation.

getOriginal

public UserInterfaceConfig.Original getOriginal(ConfigManager cfgmgr)
Description copied from class: UserInterfaceConfig.Implementation
Returns a reference to the config's underlying original implementation.

Specified by:
getOriginal in class UserInterfaceConfig.Implementation

getComponent

public Component getComponent(GlContext ctx,
                              Scope scope,
                              Component comp)
Description copied from class: UserInterfaceConfig.Implementation
Creates or updates a component for this configuration.

Specified by:
getComponent in class UserInterfaceConfig.Implementation
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.


Copyright © 2011. All Rights Reserved.