C# Class erminas.SmartAPI.CMS.Project.Pages.Elements.PageElement

Base class for elements of pages. All page element classes have to either get annotated with a attribute denoting their element type or have to be added through the method.
Inheritance: PartialRedDotProjectObject, IPageElement
Afficher le fichier Open project: erminas/smartapi Class Usage Examples

Protected Properties

Свойство Type Description
Type ElementType

Méthodes publiques

Méthode Description
CreateElement ( IProject project, System.Guid elementGuid, ILanguageVariant languageVariant ) : IPageElement

Create an element out of its XML representation (uses the attribute "elttype") to determine the element type and create the appropriate object.

CreateElement ( IProject project, XmlElement xmlElement ) : IPageElement

Create an element out of its XML representation (uses the attribute "elttype") to determine the element type and create the appropriate object.

RegisterType ( ElementType typeValue, Type type ) : void

Méthodes protégées

Méthode Description
LoadWholeObject ( ) : void
LoadWholePageElement ( ) : void
PageElement ( IProject project, System.Guid guid, ILanguageVariant languageVariant ) : System
PageElement ( IProject project, XmlElement xmlElement ) : System
RetrieveWholeObject ( ) : XmlElement

Private Methods

Méthode Description
LoadXml ( ) : void
PageElement ( ) : System

Method Details

CreateElement() public static méthode

Create an element out of its XML representation (uses the attribute "elttype") to determine the element type and create the appropriate object.
if the "elttype" attribute of the XML node contains an unknown value
public static CreateElement ( IProject project, System.Guid elementGuid, ILanguageVariant languageVariant ) : IPageElement
project IProject Project containing the element
elementGuid System.Guid Guid of the element
languageVariant ILanguageVariant The language variant of the page element
Résultat IPageElement

CreateElement() public static méthode

Create an element out of its XML representation (uses the attribute "elttype") to determine the element type and create the appropriate object.
if the "elttype" attribute of the XML node contains an unknown value
public static CreateElement ( IProject project, XmlElement xmlElement ) : IPageElement
project IProject Page that contains the element
xmlElement System.Xml.XmlElement XML representation of the element
Résultat IPageElement

LoadWholeObject() protected final méthode

protected final LoadWholeObject ( ) : void
Résultat void

LoadWholePageElement() protected abstract méthode

protected abstract LoadWholePageElement ( ) : void
Résultat void

PageElement() protected méthode

protected PageElement ( IProject project, System.Guid guid, ILanguageVariant languageVariant ) : System
project IProject
guid System.Guid
languageVariant ILanguageVariant
Résultat System

PageElement() protected méthode

protected PageElement ( IProject project, XmlElement xmlElement ) : System
project IProject
xmlElement System.Xml.XmlElement
Résultat System

RegisterType() public static méthode

public static RegisterType ( ElementType typeValue, Type type ) : void
typeValue ElementType
type System.Type
Résultat void

RetrieveWholeObject() protected méthode

protected RetrieveWholeObject ( ) : XmlElement
Résultat System.Xml.XmlElement

Property Details

Type protected_oe property

protected ElementType Type
Résultat ElementType