Skip to content

ValueEditor class

Represents an abstract value editor.

public class Korzh.EasyQuery.ValueEditor
TypeNameDescription
StringDefaultTextGets or sets the default text.
StringDefaultValueGets or sets the default value.
StringIdGets or sets the ID of this value editor instance.
StringIDBaseGets the base part of identifier.
BooleanIsDefaultGets or sets a value indicating whether this editor is one of the default ones.
DataModelModelGets the model which this editor belongs to
DataTypeResultTypeGets or sets the data type of edited values
StringTagGets the name of the value editor type.
StringXmlDefinitionGets the XML definition of value editor.
TypeNameDescription
voidCheckInModel(DataModel model)Check current editor in model and adds it into Editors list if necessary.
BooleanLoadAttribute(String attrName, String attrValue)Loads one attribute from XML reader.
voidLoadContentFromXmlReader(XmlReader reader)Loads the content of value editor from XML reader.
voidLoadFromXmlReader(XmlReader reader)Loads from XML node.
voidReadContentFromJson(JsonReader reader)Reads the content of the value editor from JSON.
TaskReadContentFromJsonAsync(JsonReader reader)Reads the content of the value editor from JSON (asynchronous way).
voidReadOnePropFromJson(JsonReader reader, String propName)Reads one editor’s property from JSON.
TaskReadOnePropFromJsonAsync(JsonReader reader, String propName)Reads one editor’s property from JSON (asynchronous way).
voidSaveAttributesToXmlWriter(XmlWriter writer)Saves all attributes of value editor’s node to XML writer.
voidSaveContentToXmlWriter(XmlWriter writer)Saves the content of value editor to XML writer.
voidSaveToXmlWriter(XmlWriter writer, String tagName)Saves editor parameters to XML.
voidWritePropertiesToJson(JsonWriter writer, ModelReadWriteOptions rwOptions)Writes the content of the value editor to JSON.
TaskWritePropertiesToJsonAsync(JsonWriter writer, ModelReadWriteOptions rwOptions)Writes the content of the value editor to JSON (asynchronous way).
voidWriteToJson(JsonWriter writer, ModelReadWriteOptions rwOptions)Writes the value editor to JSON.
TaskWriteToJsonAsync(JsonWriter writer, ModelReadWriteOptions rwOptions)Writes the value editor to JSON (asynchronous way).
TypeNameDescription
IList<IValueEditorCreator>Creators
TypeNameDescription
StringSTypeCaptionGets the full name of the value editor class type.
TypeNameDescription
ValueEditorCreate(String tag)Creates a value editor instance of the specified type.
Int32GetNextID()Gets the next value editor identifier.
ValueEditorReadFromJson(JsonReader reader)Creates a value editor based on the value of “tag” property and reads the content of the newly created editor from JSON.
Task<ValueEditor>ReadFromJsonAsync(JsonReader reader)Creates a value editor based on the value of “tag” property and reads the content of the newly created editor from JSON (asynchronous way).
BooleanRegisterCreator(IValueEditorCreator creator)Registers new type of value editor.