C# Класс SobekCM.Library.Citation.Elements.abstract_Element

Abstract class which all html metadata element classes must extend
This implements the iElement interface.
Наследование: iElement
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
HELP_BUTTON_URL string
REPEAT_BUTTON_URL string
help_page string
html_element_name string

Открытые методы

Метод Описание
Prepare_For_Save ( SobekCM_Item Bib, SobekCM.Library.Users.User_Object Current_User ) : void

Prepares the bib object for the save, by clearing any existing data in this element's related field(s)

Read_XML ( XmlTextReader xmlReader ) : void

Reads from the template XML format

Render_Template_HTML ( TextWriter Output, SobekCM_Item Bib, string Skin_Code, bool IsMozilla, StringBuilder PopupFormBuilder, SobekCM.Library.Users.User_Object Current_User, Web_Language_Enum CurrentLanguage, SobekCM.Library.Application_State.Language_Support_Info Translator, string Base_URL ) : void

Renders the HTML for this element

Save_Constant_To_Bib ( SobekCM_Item Bib ) : void

Saves the constants to the bib id

Save_To_Bib ( SobekCM_Item Bib ) : void

Saves the data rendered by this element to the provided bibliographic object during postback

Set_Base_URL ( string Base_URL ) : void

Sets the base url for the current request

This does nothing, although it can be override by extending classes

Защищенные методы

Метод Описание
Close_Button_URL ( string Skin_Code, string Button_Base_URL ) : string

Return the HTML for the close button image for a given html interface

Help_URL ( string Skin_Code, string Current_Base_URL ) : string

Returns the URL for the element help for a given html interface

Inner_Read_Data ( XmlTextReader XMLReader ) : void

Reads the inner data from the CompleteTemplate XML format

abstract_Element ( ) : System

Constructor for a new abstract element object

Описание методов

Close_Button_URL() защищенный Метод

Return the HTML for the close button image for a given html interface
protected Close_Button_URL ( string Skin_Code, string Button_Base_URL ) : string
Skin_Code string Code for the current html skin
Button_Base_URL string Base URL for the current request
Результат string

Help_URL() защищенный Метод

Returns the URL for the element help for a given html interface
protected Help_URL ( string Skin_Code, string Current_Base_URL ) : string
Skin_Code string Code for the current html skin
Current_Base_URL string Base URL for the current request
Результат string

Inner_Read_Data() защищенный абстрактный Метод

Reads the inner data from the CompleteTemplate XML format
protected abstract Inner_Read_Data ( XmlTextReader XMLReader ) : void
XMLReader System.Xml.XmlTextReader Current template xml configuration reader
Результат void

Prepare_For_Save() публичный абстрактный Метод

Prepares the bib object for the save, by clearing any existing data in this element's related field(s)
public abstract Prepare_For_Save ( SobekCM_Item Bib, SobekCM.Library.Users.User_Object Current_User ) : void
Bib SobekCM.Resource_Object.SobekCM_Item Existing digital resource object which may already have values for this element's data field(s)
Current_User SobekCM.Library.Users.User_Object Current user, who's rights may impact the way an element is rendered
Результат void

Read_XML() публичный Метод

Reads from the template XML format
public Read_XML ( XmlTextReader xmlReader ) : void
xmlReader System.Xml.XmlTextReader Current template xml configuration reader
Результат void

Render_Template_HTML() публичный абстрактный Метод

Renders the HTML for this element
public abstract Render_Template_HTML ( TextWriter Output, SobekCM_Item Bib, string Skin_Code, bool IsMozilla, StringBuilder PopupFormBuilder, SobekCM.Library.Users.User_Object Current_User, Web_Language_Enum CurrentLanguage, SobekCM.Library.Application_State.Language_Support_Info Translator, string Base_URL ) : void
Output System.IO.TextWriter Textwriter to write the HTML for this element
Bib SobekCM.Resource_Object.SobekCM_Item Object to populate this element from
Skin_Code string Code for the current skin
IsMozilla bool Flag indicates if the current browse is Mozilla Firefox (different css choices for some elements)
PopupFormBuilder StringBuilder Builder for any related popup forms for this element
Current_User SobekCM.Library.Users.User_Object Current user, who's rights may impact the way an element is rendered
CurrentLanguage Web_Language_Enum Current user-interface language
Translator SobekCM.Library.Application_State.Language_Support_Info Language support object which handles simple translational duties
Base_URL string Base URL for the current request
Результат void

Save_Constant_To_Bib() публичный Метод

Saves the constants to the bib id
public Save_Constant_To_Bib ( SobekCM_Item Bib ) : void
Bib SobekCM.Resource_Object.SobekCM_Item Object into which to save this element's constant data
Результат void

Save_To_Bib() публичный абстрактный Метод

Saves the data rendered by this element to the provided bibliographic object during postback
public abstract Save_To_Bib ( SobekCM_Item Bib ) : void
Bib SobekCM.Resource_Object.SobekCM_Item Object into which to save the user's data, entered into the html rendered by this element
Результат void

Set_Base_URL() публичный Метод

Sets the base url for the current request
This does nothing, although it can be override by extending classes
public Set_Base_URL ( string Base_URL ) : void
Base_URL string Current Base URL for this request
Результат void

abstract_Element() защищенный Метод

Constructor for a new abstract element object
protected abstract_Element ( ) : System
Результат System

Описание свойств

HELP_BUTTON_URL защищенное свойство

Constant defines the url for the repeat button image for all metadata element objects
protected string HELP_BUTTON_URL
Результат string

REPEAT_BUTTON_URL защищенное свойство

Constant defines the url for the repeat button image for all metadata element objects
protected string REPEAT_BUTTON_URL
Результат string

help_page защищенное свойство

Name of the help page, if different than default
protected string help_page
Результат string

html_element_name защищенное свойство

Name used for style sheet references and html id's for this subtype of this element
protected string html_element_name
Результат string