ViewRegistry Class

Spotfire 14.3 API Reference
The ViewRegistry maps model types to view types for a given category of view type.
Inheritance Hierarchy

SystemObject
  ReadOnlyService
    ExtensionRegistry
      Spotfire.Dxp.Framework.ApplicationModelViewRegistry

Namespace:  Spotfire.Dxp.Framework.ApplicationModel
Assembly:  Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 65.0.19510.3242 (65.0.19510.3242)
Syntax

C#
public class ViewRegistry : ExtensionRegistry

The ViewRegistry type exposes the following members.

Methods

  NameDescription
Public methodCreateView(Type, Object)
Creates and binds a view object of the specified viewBaseType type to the specified model object.
Public methodCreateViewT(Object)
Creates and binds a view object of type T to the specified model object.
Public methodCreateViewT(Object, Type)
Creates and binds a view object of type T to the specified model object. The specified modelType is used to determine the type of the specified model object when the view type is looked up.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

A view of a model object is typically used to display the state of the model object and to translate the interaction of the user to manipulations of the model object. Views are registered by overriding the RegisterViews(AddInViewRegistrar) method of the AddIn class.

The ViewRegistry offers support for creation of view object given a model object and a view type. When a view object is created, the ViewRegistry passes the model object as an argument to the constructor and thus allows the view object to bind to the model object. The ViewRegistry does not keep track of the view created instances.

The ViewRegistry is typically used by view object to create cildren views of model object deeper down in the model structure. For instance, the view object that displays a page in the Windows.Forms view uses the ViewRegistry to create Windows.Forms.Control-views of the visualizations on the page.

The ViewRegistry is available as a service.

Version Information

Supported in: 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also

Reference