IWidgetFactory

Description

interface Tinman.Engine.Widgets.IWidgetFactory

Extended by

WidgetFactory abstract

Base interface for classes that create IWidget objects from various things.

The purpose of this interface is to provide an extensible mechanism for browsing and inspecting various domain model objects visually at runtime.

Public / Methods

Can​Create​Widget


public method CanCreateWidget → (1)

thing in : object

The thing.

returns → bool

true if CreateWidget may succeed when passed thing in,
false if it will always fail.

Checks if the CreateWidget method can create a IWidget for the given thing in.

Create​Widget


[OwnerReturn]
public method CreateWidget → (2)

thing in : object own

[not-null]
The thing for which to create a widget.

settings opt : Path = null

Optional value to set to IWidget.SettingsPath.

returns → IWidget

The created IWidget or null if the method has failed. The returned IWidget object will have been initialized, i.e. the caller does not need to call IWidget.Initialize on it.

Creates a IWidget for the given thing in.

Public / Attributes

Name


public attribute Name → (get)

value : string

[not-empty]
The widget factory name.

Returns the human-readable description of this widget factory.