C# 클래스 FiftyOne.Foundation.UI.Web.BaseUserControl

The base user control containing common methods shared across controls.
상속: System.Web.UI.UserControl
파일 보기 프로젝트 열기: 51Degrees/dotNET-Device-Detection

보호된 프로퍼티들

프로퍼티 타입 설명
_container System.Web.UI.WebControls.Panel
_footer Stats
_removeBadCharacters Regex

Private Properties

프로퍼티 타입 설명
AddLink void
GetHardwareImages HardwareImage[]
WriteLinkStart void

보호된 메소드들

메소드 설명
AddBreak ( ) : void

Adds a
to the controls.

AddLabel ( WebControl panel, string text, string tooltip, Uri url, string anchor ) : void

Adds a label control to the panel provided, setting the label controls text to the value provided.

AddPlus ( WebControl control, string style ) : System.Web.UI.WebControls.Panel

Adds a plus toggle to the control, and then returns the control added.

AddTag ( string>.List list, string key, string value ) : void

Adds the tag and replacement value to the list.

BuildExternalLink ( XmlWriter writer, Uri url, string title ) : void

Adds a hyperlink prefix to the XML.

BuildHardwareImages ( XmlWriter writer, Profile profile ) : void

Adds thee HTML for the rotating images for the profile to the writer.

GetNewUrl ( NameValueCollection parameters, string key, string value ) : string

Returns a new url that will replace, or add a parameter to the one that is currently being used.

GetNewUrl ( string absoluteUrl, NameValueCollection parameters ) : string

Returns a new url that will replace, or add a parameter to the one that is currently being used.

GetNewUrl ( string absoluteUrl, NameValueCollection parameters, string key ) : string

Returns a new url that will replace, or add a parameter to the one that is currently being used.

GetNewUrl ( string absoluteUrl, NameValueCollection parameters, string key, string value ) : string

Returns a new url that will replace, or add a parameter to the one that was supplied.

GetNewUrl ( string key, string value ) : string

Creates a new GET url containing the key and value parameters.

OnInit ( EventArgs e ) : void

Adds the legend to the list of controls.

OnPreRender ( EventArgs e ) : void

Sets the CSS class of the control.

Page_PreRenderComplete ( object sender, EventArgs e ) : void

Displays the logo if requested and the footer.

ReplaceTags ( string source ) : string

Replaces all the standard tags in the source text with the values defined for the user control.

ReplaceTags ( string source, string>.List tags ) : string

Replaces the tag with the value in the text provided.

WriteDeviceProfile ( XmlWriter writer, Profile profile, string deviceUrl ) : void

Writes the hardware profile to the writer.

비공개 메소드들

메소드 설명
AddLink ( WebControl panel, string tooltip, Uri url ) : void

Adds a link control to the output for the value provided.

GetHardwareImages ( Profile profile ) : HardwareImage[]

Returns the hardware images for the profile as an array.

WriteLinkStart ( XmlWriter writer, Profile profile, string deviceUrl, string text, string title = null ) : void

메소드 상세

AddBreak() 보호된 메소드

Adds a
to the controls.
protected AddBreak ( ) : void
리턴 void

AddLabel() 보호된 메소드

Adds a label control to the panel provided, setting the label controls text to the value provided.
protected AddLabel ( WebControl panel, string text, string tooltip, Uri url, string anchor ) : void
panel System.Web.UI.WebControls.WebControl Control the label will be added to.
text string The text that will appear in the label.
tooltip string The tooltip that will be displayed next to the label.
url System.Uri A url for more information.
anchor string The name of the anchor.
리턴 void

AddPlus() 보호된 메소드

Adds a plus toggle to the control, and then returns the control added.
protected AddPlus ( WebControl control, string style ) : System.Web.UI.WebControls.Panel
control System.Web.UI.WebControls.WebControl The parent control.
style string The CSS display style to apply when expanding.
리턴 System.Web.UI.WebControls.Panel

AddTag() 보호된 정적인 메소드

Adds the tag and replacement value to the list.
protected static AddTag ( string>.List list, string key, string value ) : void
list string>.List
key string
value string
리턴 void

BuildExternalLink() 보호된 메소드

Adds a hyperlink prefix to the XML.
protected BuildExternalLink ( XmlWriter writer, Uri url, string title ) : void
writer System.Xml.XmlWriter
url System.Uri A URL to the external link
title string The title attribute for the external link
리턴 void

BuildHardwareImages() 보호된 메소드

Adds thee HTML for the rotating images for the profile to the writer.
protected BuildHardwareImages ( XmlWriter writer, Profile profile ) : void
writer System.Xml.XmlWriter Write producing the output XML
profile Profile Profile who's images should be added
리턴 void

GetNewUrl() 보호된 메소드

Returns a new url that will replace, or add a parameter to the one that is currently being used.
protected GetNewUrl ( NameValueCollection parameters, string key, string value ) : string
parameters System.Collections.Specialized.NameValueCollection Existing list of parameters to be altered.
key string The parameter key.
value string The parameter value.
리턴 string

GetNewUrl() 보호된 메소드

Returns a new url that will replace, or add a parameter to the one that is currently being used.
protected GetNewUrl ( string absoluteUrl, NameValueCollection parameters ) : string
absoluteUrl string The root url to add parameters too.
parameters System.Collections.Specialized.NameValueCollection Existing list of parameters to be altered.
리턴 string

GetNewUrl() 보호된 메소드

Returns a new url that will replace, or add a parameter to the one that is currently being used.
protected GetNewUrl ( string absoluteUrl, NameValueCollection parameters, string key ) : string
absoluteUrl string The root url to add parameters too.
parameters System.Collections.Specialized.NameValueCollection Existing list of parameters to be altered.
key string A parameter key not to be removed from the list of parameters.
리턴 string

GetNewUrl() 보호된 메소드

Returns a new url that will replace, or add a parameter to the one that was supplied.
protected GetNewUrl ( string absoluteUrl, NameValueCollection parameters, string key, string value ) : string
absoluteUrl string The root url to add parameters too.
parameters System.Collections.Specialized.NameValueCollection Existing list of parameters to be altered.
key string The parameter key.
value string The parameter value.
리턴 string

GetNewUrl() 보호된 메소드

Creates a new GET url containing the key and value parameters.
protected GetNewUrl ( string key, string value ) : string
key string The parameter key.
value string The parameter value.
리턴 string

OnInit() 보호된 메소드

Adds the legend to the list of controls.
protected OnInit ( EventArgs e ) : void
e System.EventArgs
리턴 void

OnPreRender() 보호된 메소드

Sets the CSS class of the control.
protected OnPreRender ( EventArgs e ) : void
e System.EventArgs
리턴 void

Page_PreRenderComplete() 보호된 메소드

Displays the logo if requested and the footer.
protected Page_PreRenderComplete ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void

ReplaceTags() 보호된 메소드

Replaces all the standard tags in the source text with the values defined for the user control.
protected ReplaceTags ( string source ) : string
source string
리턴 string

ReplaceTags() 보호된 정적인 메소드

Replaces the tag with the value in the text provided.
protected static ReplaceTags ( string source, string>.List tags ) : string
source string The source string builder.
tags string>.List Collection of tags and their new values.
리턴 string

WriteDeviceProfile() 보호된 메소드

Writes the hardware profile to the writer.
protected WriteDeviceProfile ( XmlWriter writer, Profile profile, string deviceUrl ) : void
writer System.Xml.XmlWriter
profile Profile
deviceUrl string
리턴 void

프로퍼티 상세

_container 보호되어 있는 프로퍼티

The container for the all controls in the user control.
protected Panel,System.Web.UI.WebControls _container
리턴 System.Web.UI.WebControls.Panel

_footer 보호되어 있는 프로퍼티

Footer control used to display stats about the provider.
protected Stats,FiftyOne.Foundation.UI.Web _footer
리턴 Stats

_removeBadCharacters 보호되어 있는 정적으로 프로퍼티

Used to remove white space and other characters that aren't valid ID attributes in HTML.
protected static Regex _removeBadCharacters
리턴 Regex