Skip to content

ValueEditor class

Represents an abstract value editor.

public abstract class EasyData.ValueEditor

Package: EasyData.Core (targets: netstandard2.0)

Assembly: EasyData.Core.dll

NameTypeDescription
ValueEditor()voidInitializes a new instance of the EasyData.ValueEditor class.
ValueEditor(string id)voidInitializes a new instance of the EasyData.ValueEditor class.
NameTypeDescription
DefaultTextstringGets or sets the default text.
DefaultValuestringGets or sets the default value.
IdstringGets or sets the ID of this value editor instance.
IdBasestringGets the base part of identifier.
IsDefaultboolGets or sets a value indicating whether this editor is one of the default ones.
ModelMetaDataGets the model which this editor belongs to
ResultTypeDataTypeGets or sets the data type of edited values
TagstringGets the name of the value editor type.
XmlDefinitionstringGets the XML definition of value editor.
NameTypeDescription
CheckInModel(MetaData model)voidCheck current editor in model and adds it into Editors list if necessary.
ReadContentFromJsonAsync(JsonReader reader)TaskReads the content of the value editor from JSON (asynchronous way).
ReadOnePropFromJsonAsync(JsonReader reader, string propName)TaskReads one editor’s property from JSON (asynchronous way).
WritePropertiesToJsonAsync(JsonWriter writer, BitOptions rwOptions)TaskWrites the content of the value editor to JSON (asynchronous way).
WriteToJsonAsync(JsonWriter writer, BitOptions rwOptions)TaskWrites the value editor to JSON (asynchronous way).
NameTypeDescription
STypeCaptionstringGets the full name of the value editor class type.
NameTypeDescription
Create(string tag)ValueEditorCreates a value editor instance of the specified type.
ReadFromJsonAsync(JsonReader reader)Task<ValueEditor>Creates a value editor based on the value of “tag” property and reads the content of the newly created editor from JSON (asynchronous way).
RegisterCreator(IValueEditorCreator creator)boolRegisters new type of value editor.