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 instance is default.
DataTypeResultTypeGets or sets the data type of edited values
StringTypeNameGets 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.
voidSaveAttributesToXmlWriter(XmlWriter writer)Saves all attributes of value editor’s node to XML writer.
voidSaveContentToJsonDict(JsonDict dict)Saves the content of value editor to IDictionary object (for JSON serialization).
voidSaveContentToXmlWriter(XmlWriter writer)Saves the content of value editor to XML writer.
JsonDictSaveToJsonDict()Saves the content of value editor to IDictionary object (for JSON serialization).
voidSaveToXmlWriter(XmlWriter writer, String tagName)Saves editor parameters to XML.
TypeNameDescription
Dictionary<String, IValueEditorCreator>Creators
TypeNameDescription
StringSTypeCaptionGets the full name of the value editor class type.
StringSTypeNameGets the name of the value editor class type.
TypeNameDescription
ValueEditorCreate(String type)Creates the value editor instance of specified type.
Int32GetNextID()Gets the next value editor identifier.
BooleanRegisterType(String type, IValueEditorCreator creator)Registers new type of value editor.