Table of Contents

Class EditorManager

Namespace
Dynamicweb.Content.Items.Editors
Assembly
Dynamicweb.dll
Represents an editor manager. This class cannot be inherited.
public sealed class EditorManager
Inheritance
EditorManager
Inherited Members

Properties

Current

Gets the current instance of the editor manager.
public static EditorManager Current { get; }

Property Value

EditorManager

Methods

ConvertValue(ItemField, object)

Converts the value of a given field to its appropriate CLR representation.
public object ConvertValue(ItemField field, object value)

Parameters

field ItemField
Item field.
value object
Field value.

Returns

object
Field value.

ConvertValue(string, object, ItemEntry)

Converts the value of a given field to its appropriate CLR representation.
public object ConvertValue(string fieldName, object fieldValue, ItemEntry item)

Parameters

fieldName string
Field name.
fieldValue object
Field value.
item ItemEntry
Item instance.

Returns

object
Field value.

ConvertValue(string, object, string)

Converts the value of a given field to its appropriate CLR representation.
public object ConvertValue(string fieldName, object fieldValue, string itemSystemName)

Parameters

fieldName string
Field name.
fieldValue object
Field value.
itemSystemName string
Item system name.

Returns

object
Field value.

CreateEditor(EditorMetadata)

Creates an instance of the specified editor.
public Editor CreateEditor(EditorMetadata editorMeta)

Parameters

editorMeta EditorMetadata
Editor metadata.

Returns

Editor
An instance of the specified editor.

CreateEditor(Type)

Creates an instance of the specified editor.
public Editor CreateEditor(Type editorType)

Parameters

editorType Type
Editor type.

Returns

Editor
An instance of the specified editor.

CreateEditor<T>()

Creates an instance of the specified editor.
public T CreateEditor<T>() where T : Editor

Returns

T
An instance of the specified editor.

Type Parameters

T
Editor type.

CreateValidator(ValidatorMetadata)

Creates an instance of the specified validator.
public Validator CreateValidator(ValidatorMetadata validatorMeta)

Parameters

validatorMeta ValidatorMetadata
Validator metadata.

Returns

Validator
An instance of the specified validator.

CreateValidator(Type)

Creates an instance of the specified validator.
public Validator CreateValidator(Type validatorType)

Parameters

validatorType Type
Validator type.

Returns

Validator
An instance of the specified validator.

CreateValidator(Type, IDictionary<string, object>)

Creates an instance of the specified validator.
public Validator CreateValidator(Type validatorType, IDictionary<string, object> parameters)

Parameters

validatorType Type
Validator type.
parameters IDictionary<string, object>
Validator parameters.

Returns

Validator
An instance of the specified validator.

CreateValidator<T>()

Creates an instance of the specified validator.
public T CreateValidator<T>() where T : Validator

Returns

T
An instance of the specified validator.

Type Parameters

T
Validator type.

CreateValidator<T>(IDictionary<string, object>)

Creates an instance of the specified validator.
public T CreateValidator<T>(IDictionary<string, object> parameters) where T : Validator

Parameters

parameters IDictionary<string, object>
Validator parameters.

Returns

T
An instance of the specified validator.

Type Parameters

T
Validator type.

GetEditorGroup(Editor)

Gets the user-friendly name of the editor group.
public string GetEditorGroup(Editor editor)

Parameters

editor Editor
Editor instance.

Returns

string
The user-friendly name of the editor group.

GetEditorGroup(Type)

Gets the user-friendly name of the editor group.
public string GetEditorGroup(Type editorType)

Parameters

editorType Type
Editor type.

Returns

string
The user-friendly name of the editor group.

GetEditorName(Editor)

Gets the user-friendly name of the editor.
public string GetEditorName(Editor editor)

Parameters

editor Editor
Editor instance.

Returns

string
The user-friendly name of the editor.

GetEditorName(Type)

Gets the user-friendly name of the editor.
public string GetEditorName(Type editorType)

Parameters

editorType Type
Editor type.

Returns

string
The user-friendly name of the editor.

GetEditorTypes()

Returns all editor types.
public IEnumerable<Type> GetEditorTypes()

Returns

IEnumerable<Type>
All editor types.

GetFieldValidators(ItemField)

Get field validators.
public ValidatorCollection GetFieldValidators(ItemField fieldMeta)

Parameters

fieldMeta ItemField
Field metadata.

Returns

ValidatorCollection
An collection of validators for the specified field .

IsEditableListEditor(Type)

Returns value indicating whether the given editor is a list-based editor whose values can be edited dynamically.
public bool IsEditableListEditor(Type editorType)

Parameters

editorType Type
Editor type.

Returns

bool
Value indicating whether the given editor is a list-based editor whose values can be edited dynamically.

IsListEditor(Editor)

Returns value indicating whether the given editor is a list-based editor.
public bool IsListEditor(Editor editor)

Parameters

editor Editor
Editor instace.

Returns

bool
Value indicating whether the given editor is a list-based editor.

IsListEditor(EditorMetadata)

Returns value indicating whether the given editor is a list-based editor.
public bool IsListEditor(EditorMetadata editorMeta)

Parameters

editorMeta EditorMetadata
Editor metadata.

Returns

bool
Value indicating whether the given editor is a list-based editor.

IsListEditor(Type)

Returns value indicating whether the given editor is a list-based editor.
public bool IsListEditor(Type editorType)

Parameters

editorType Type
Editor type.

Returns

bool
Value indicating whether the given editor is a list-based editor.

IsPlainTextEditor(Type)

Returns value indicating whether the given editor is a plain text editor.
public bool IsPlainTextEditor(Type editorType)

Parameters

editorType Type
Editor type.

Returns

bool
Value indicating whether the given editor is a plain text editor.

SelectEditorType(Type)

Selects the best matching editor type for a given data type.
public Type SelectEditorType(Type dataType)

Parameters

dataType Type
Data type.

Returns

Type
Editor type.

SelectEditorType(Type, int?)

Selects the best matching editor type for a given data type.
public Type SelectEditorType(Type dataType, int? storage)

Parameters

dataType Type
Data type.
storage int?
Indicates how much storage is required for holding field value.

Returns

Type
Editor type.
To top