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

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

@EditorTypes(value={UserInterfaceConfig.Original.class,UserInterfaceConfig.Derived.class})
public abstract static class UserInterfaceConfig.Implementation
extends DeepObject
implements Exportable

Contains the actual implementation of the interface.


Constructor Summary
UserInterfaceConfig.Implementation()
           
 
Method Summary
abstract  Component getComponent(GlContext ctx, Scope scope, Component comp)
          Creates or updates a component for this configuration.
abstract  ConfigManager getConfigManager(ConfigManager cfgmgr)
          Returns a reference to the config manager to use when resolving references.
abstract  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.
 void invalidate()
          Invalidates any cached data.
 
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
 

Constructor Detail

UserInterfaceConfig.Implementation

public UserInterfaceConfig.Implementation()
Method Detail

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Adds the implementation's update references to the provided set.


getConfigManager

public abstract ConfigManager getConfigManager(ConfigManager cfgmgr)
Returns a reference to the config manager to use when resolving references.

Parameters:
cfgmgr - the config manager of the config containing the implementation.

getOriginal

public abstract UserInterfaceConfig.Original getOriginal(ConfigManager cfgmgr)
Returns a reference to the config's underlying original implementation.


getComponent

public abstract 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.

invalidate

public void invalidate()
Invalidates any cached data.



Copyright © 2011. All Rights Reserved.