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

Abstract base class for all elements which are made up of a single combo/select box
This class implements the iElement interface and extends the abstract_Element class.
Наследование: abstract_Element
Показать файл Открыть проект

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

Свойство Тип Описание
default_values List
items List
onChange string
restrict_values bool

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

Метод Описание
Add_Default_Value ( string defaultValue ) : void

Adds a default value for this combo box based element

Add_Item ( string newItem ) : void

Add a new possible, selectable value to this combo box

Set_Values ( string values ) : void

Sets all of the possible, selectable values

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

Метод Описание
Inner_Read_Data ( XmlTextReader XMLReader ) : void

Reads the inner data from the CompleteTemplate XML format

This reads the possible values for the combo box from a options subelement and the default value from a value subelement

comboBox_Element ( string Title, string Html_Element_Name ) : System

Constructor for a new instance of the comboBox_Element class

render_helper ( TextWriter Output, string instance_value, string Skin_Code, User_Object Current_User, Web_Language_Enum CurrentLanguage, Language_Support_Info Translator, string Base_URL ) : void

Method helps to render all single combo box based elements

render_helper ( TextWriter Output, string instance_value, string Skin_Code, User_Object Current_User, Web_Language_Enum CurrentLanguage, Language_Support_Info Translator, string Base_URL, bool initial_value ) : void

Method helps to render all single combo box based elements

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

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

Adds a default value for this combo box based element
public Add_Default_Value ( string defaultValue ) : void
defaultValue string New default value
Результат void

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

Add a new possible, selectable value to this combo box
public Add_Item ( string newItem ) : void
newItem string New possible, selectable value
Результат void

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

Reads the inner data from the CompleteTemplate XML format
This reads the possible values for the combo box from a options subelement and the default value from a value subelement
protected Inner_Read_Data ( XmlTextReader XMLReader ) : void
XMLReader System.Xml.XmlTextReader Current template xml configuration reader
Результат void

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

Sets all of the possible, selectable values
public Set_Values ( string values ) : void
values string Array of possible, selectable values
Результат void

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

Constructor for a new instance of the comboBox_Element class
protected comboBox_Element ( string Title, string Html_Element_Name ) : System
Title string Title for this element
Html_Element_Name string Name for the html components and styles for this element
Результат System

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

Method helps to render all single combo box based elements
protected render_helper ( TextWriter Output, string instance_value, string Skin_Code, User_Object Current_User, Web_Language_Enum CurrentLanguage, Language_Support_Info Translator, string Base_URL ) : void
Output System.IO.TextWriter Output for the generated html for this element
instance_value string Value for the current digital resource to display
Skin_Code string Code for the current html skin
Current_User SobekCM.Core.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.Core.ApplicationState.Language_Support_Info Language support object which handles simple translational duties
Base_URL string Base URL for the current request
Результат void

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

Method helps to render all single combo box based elements
protected render_helper ( TextWriter Output, string instance_value, string Skin_Code, User_Object Current_User, Web_Language_Enum CurrentLanguage, Language_Support_Info Translator, string Base_URL, bool initial_value ) : void
Output System.IO.TextWriter Output for the generated html for this element
instance_value string Value for the current digital resource to display
Skin_Code string Code for the current html skin
Current_User SobekCM.Core.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.Core.ApplicationState.Language_Support_Info Language support object which handles simple translational duties
Base_URL string Base URL for the current request
initial_value bool Flag indicates if the value in the instance_value param is actually instructional text, and not a true value
Результат void

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

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

Protected field holds the default value(s)
protected List default_values
Результат List

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

Protected field holds all the possible, selectable values
protected List items
Результат List

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

Protected field holds the onchange event text to add to the html
protected string onChange
Результат string

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

Protected field holds the flag that tells if a value from the package which is not in the provided options should be discarded or permitted
protected bool restrict_values
Результат bool