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

Abstract base class for all elements which are made up of multiple small text boxes
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
boxes_per_line int
default_values List
label_from_template_file string
max_boxes int
view_choices_string string

Public Methods

Method Description
Add_Default_Value ( string defaultValue ) : void

Adds a new default value for this multiple text box type element

Protected Methods

Method Description
Inner_Read_Data ( XmlTextReader XMLReader ) : void

Reads the inner data from the CompleteTemplate XML format

This reads the default value from a value subelement

multipleTextBox_Element ( string Title, string Html_Element_Name ) : System

Constructor for a new instance of the multipleTextBox_Element class

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

Method helps to render all multiple text 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 ) : void

Method helps to render all multiple text box based elements

Method Details

Add_Default_Value() public method

Adds a new default value for this multiple text box type element
public Add_Default_Value ( string defaultValue ) : void
defaultValue string New default value
return void

Inner_Read_Data() protected method

Reads the inner data from the CompleteTemplate XML format
This reads the default value from a value subelement
protected Inner_Read_Data ( XmlTextReader XMLReader ) : void
XMLReader System.Xml.XmlTextReader Current template xml configuration reader
return void

multipleTextBox_Element() protected method

Constructor for a new instance of the multipleTextBox_Element class
protected multipleTextBox_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

render_helper() protected method

Method helps to render all multiple text box based elements
protected render_helper ( TextWriter Output, ReadOnlyCollection instance_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 generated html for this element
instance_values ReadOnlyCollection Value(s) 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
return void

render_helper() protected method

Method helps to render all multiple text 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
return void

Property Details

boxes_per_line protected_oe property

Protected field holds how many boxes are allowed per line, or -1 if there is no limit
protected int boxes_per_line
return int

default_values protected_oe property

Protected field holds all the default values to display
protected List default_values
return List

label_from_template_file protected_oe property

Protected field holds the label field from the template file
protected string label_from_template_file
return string

max_boxes protected_oe property

Protected field holds how many boxes are allowed total for this element, or -1 if there is no limit
protected int max_boxes
return int

view_choices_string protected_oe property

Protected field holds any html to insert as the view choices option after the boxes
protected string view_choices_string
return string