C# Class SobekCM.Library.Citation.Elements.textBox_ComboBox_Element

Abstract base class for all elements which are made up of a text box followed by a combo/select box
This class implements the iElement interface and extends the abstract_Element class.
Inheritance: abstract_Element
ファイルを表示 Open project: MarkVSullivan/SobekCM-Web-Application

Protected Properties

Property Type Description
possible_select_items_text List
possible_select_items_value List
second_label string

Public Methods

Method Description
Add_Select_Item ( string text, string value ) : void

Adds a new possible string for the combo/select box, along with associated value

Protected Methods

Method Description
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

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

Method helps to render the html for all elements based on textBox_ComboBox_Element class

textBox_ComboBox_Element ( string Title, string Html_Element_Name ) : System

Constructor for a new instance of the textBox_ComboBox_Element class

Method Details

Add_Select_Item() public method

Adds a new possible string for the combo/select box, along with associated value
public Add_Select_Item ( string text, string value ) : void
text string Text to display in the combo/select box
value string Associated value for this option
return void

Inner_Read_Data() protected method

Reads the inner data from the CompleteTemplate XML format
This reads the possible values for the combo box from a options subelement
protected Inner_Read_Data ( XmlTextReader XMLReader ) : void
XMLReader System.Xml.XmlTextReader Current template xml configuration reader
return void

render_helper() protected method

Method helps to render the html for all elements based on textBox_ComboBox_Element class
protected render_helper ( TextWriter Output, List text_values, List select_values, 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 generate html for this element
text_values List Value(s) for the current digital resource to display in the text box
select_values List Value(s) for the current digital resource to display in the combo box
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
return void

textBox_ComboBox_Element() protected method

Constructor for a new instance of the textBox_ComboBox_Element class
protected textBox_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
return System

Property Details

possible_select_items_text protected_oe property

Protected field contains all the possible strings for the combo/select box
protected List possible_select_items_text
return List

possible_select_items_value protected_oe property

Protected field contains all the values for the possible strings for the combo/select box
protected List possible_select_items_value
return List

second_label protected_oe property

Protected field contains a possible second label to show before the combo box
protected string second_label
return string